summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/custodian/protocoltest/rsync.rb4
1 files changed, 4 insertions, 0 deletions
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