summaryrefslogtreecommitdiff
path: root/data-sync
diff options
context:
space:
mode:
authorPaul Kocialkowski2023-02-14 23:11:03 +0100
committerPaul Kocialkowski2023-02-14 23:11:03 +0100
commit36cfbb8d14610b7f587ffcd1802cd75bf46be31e (patch)
tree22e5fda8da84abca8c79d2c36c700eaa13fac3dd /data-sync
parente32196f716343e392f6159a2b740056fd1e57e27 (diff)
data-sync: Add support for a distinct address
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'data-sync')
-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