summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdata-sync7
1 files changed, 6 insertions, 1 deletions
diff --git a/data-sync b/data-sync
index 1e7af02..8773a53 100755
--- a/data-sync
+++ b/data-sync
@@ -80,7 +80,12 @@ class data_sync():
if "user" in host:
address += host["user"]+"@"
- address += host["name"]+":"+path
+ if "address" in host:
+ address += host["address"]
+ else:
+ address += host["name"]
+
+ address += ":" + path
return address