From 9939c9f857d63e299a140b0e0dadc1b488129579 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Thu, 22 Nov 2012 15:40:07 +0000 Subject: "ftp://ftp.example.com/ must run ftp" + "rsync://...../" are now both permitted. --- lib/custodian/protocoltest/rsync.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/custodian/protocoltest/rsync.rb b/lib/custodian/protocoltest/rsync.rb index 8b4e84c..293f67c 100644 --- a/lib/custodian/protocoltest/rsync.rb +++ b/lib/custodian/protocoltest/rsync.rb @@ -52,6 +52,10 @@ module Custodian # Save the host # @host = line.split( /\s+/)[0] + if ( @host =~ /^rsync:\/\/([^\/]+)\/?/ ) + @host = $1.dup + end + # # Save the port -- cgit v1.2.1