summaryrefslogtreecommitdiff
path: root/lib/custodian
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-22 14:55:21 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-22 14:55:21 +0000
commit14b3dc6bca2e2fb6dcdb922bfa13309156c128b9 (patch)
tree32540478e6c740f915924a149e407483e81325cf /lib/custodian
parent91a907c6e8363940fdc3a32eecf16a731f75b5d2 (diff)
Parse ftp://xxxx/ to -> xxx
Diffstat (limited to 'lib/custodian')
-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