projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb32e93
)
Don't complain about TLS module unless needed
author
Jamie Cameron
<jcameron@webmin.com>
Wed, 12 Aug 2009 17:55:33 +0000
(10:55 -0700)
committer
Jamie Cameron
<jcameron@webmin.com>
Wed, 12 Aug 2009 17:55:33 +0000
(10:55 -0700)
status/ftp-monitor.pl
patch
|
blob
|
history
diff --git
a/status/ftp-monitor.pl
b/status/ftp-monitor.pl
index
87a4b53
..
88db1ce
100755
(executable)
--- a/
status/ftp-monitor.pl
+++ b/
status/ftp-monitor.pl
@@
-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>'));
+ }
}
}