diff options
author | Steve Kemp <steve@steve.org.uk> | 2012-11-22 14:55:21 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2012-11-22 14:55:21 +0000 |
commit | c852ddbe52cdfc962dbb3d9e6ef4517d59961503 (patch) | |
tree | 32540478e6c740f915924a149e407483e81325cf | |
parent | 64a0ffe6001d6f76c4afe780fc8b022f4f59a470 (diff) |
Parse ftp://xxxx/ to -> xxx
-rw-r--r-- | lib/custodian/protocoltest/ftp.rb | 3 |
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 |