- fixed configure.pl and makeDist.
[BackupPC.git] / lib / BackupPC / CGI / StartStopBackup.pm
index 199deb8..8e2f6a6 100644 (file)
@@ -28,7 +28,7 @@
 #
 #========================================================================
 #
-# Version 2.1.0_CVS, released 8 Feb 2004.
+# Version 3.0.0alpha, released 23 Jan 2006.
 #
 # See http://backuppc.sourceforge.net.
 #
@@ -76,7 +76,13 @@ sub action
         Trailer();
     } else {
         if ( $start ) {
-           my $ipAddr = ConfirmIPAddress($host);
+            $bpc->ConfigRead($host);
+            %Conf = $bpc->Conf();
+
+            my $checkHost = $host;
+            $checkHost = $Conf{ClientNameAlias}
+                                if ( $Conf{ClientNameAlias} ne "" );
+           my $ipAddr = ConfirmIPAddress($checkHost);
            my $content = eval("qq{$Lang->{Are_you_sure_start}}");
             Header(eval("qq{$Lang->{BackupPC__Start_Backup_Confirm_on__host}}"),$content);
         } else {