From 36cfbb8d14610b7f587ffcd1802cd75bf46be31e Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Tue, 14 Feb 2023 23:11:03 +0100 Subject: data-sync: Add support for a distinct address Signed-off-by: Paul Kocialkowski --- data-sync | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3