From 667f375bc19540ec9cb388b70a9c22f20bf8ea99 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/custodian') 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