summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/custodian/protocoltest/ftp.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/custodian/protocoltest/ftp.rb b/lib/custodian/protocoltest/ftp.rb
index f1c8ff9..db05ac4 100644
--- a/lib/custodian/protocoltest/ftp.rb
+++ b/lib/custodian/protocoltest/ftp.rb
@@ -53,6 +53,9 @@ module Custodian
# Save the host
#
@host = line.split( /\s+/)[0]
+ if ( @host =~ /^ftp:\/\/([^\/]+)\/?/ )
+ @host = $1.dup
+ end
#
# Save the port