From 14b3dc6bca2e2fb6dcdb922bfa13309156c128b9 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Thu, 22 Nov 2012 14:55:21 +0000 Subject: Parse ftp://xxxx/ to -> xxx --- lib/custodian/protocoltest/ftp.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') 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 -- cgit v1.2.1