Don't complain about TLS module unless needed
authorJamie Cameron <jcameron@webmin.com>
Wed, 12 Aug 2009 17:55:33 +0000 (10:55 -0700)
committerJamie Cameron <jcameron@webmin.com>
Wed, 12 Aug 2009 17:55:33 +0000 (10:55 -0700)
status/ftp-monitor.pl

index 87a4b53..88db1ce 100755 (executable)
@@ -119,9 +119,11 @@ else {
        }
 
 $_[0]->{'tls'} = $in{'tls'};
-eval "use Net::FTPSSL";
-if ($@) {
-       &error(&text('ftp_etls', '<tt>Net::FTPSSL</tt>'));
+if ($in{'tls'}) {
+       eval "use Net::FTPSSL";
+       if ($@) {
+               &error(&text('ftp_etls', '<tt>Net::FTPSSL</tt>'));
+               }
        }
 }