From c852ddbe52cdfc962dbb3d9e6ef4517d59961503 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/custodian/protocoltest/ftp.rb') 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