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 | 14b3dc6bca2e2fb6dcdb922bfa13309156c128b9 (patch) | |
tree | 32540478e6c740f915924a149e407483e81325cf | |
parent | 91a907c6e8363940fdc3a32eecf16a731f75b5d2 (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 |