summaryrefslogtreecommitdiff
path: root/backup.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-11-20 19:14:23 +0100
committerErich Eckner <git@eckner.net>2017-11-20 19:14:23 +0100
commit8c686c81f586faab7a84b26d7493596c92c8b191 (patch)
tree3d5f95dbc9cf71f92036d481483a89cceb744e7b /backup.in
parent6bd281f41a3927439c8555498efb27e0836b0397 (diff)
downloadhardlinkedBackups-8c686c81f586faab7a84b26d7493596c92c8b191.tar.xz
backup: bugfix IpV6 tunnel
Diffstat (limited to 'backup.in')
-rwxr-xr-xbackup.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/backup.in b/backup.in
index cba7bb5..e20c10f 100755
--- a/backup.in
+++ b/backup.in
@@ -57,9 +57,9 @@ then
sshHopp="$4"
lokPort=$[$RANDOM/2+8000]
rsyncShell="-e ssh -6 -p${lokPort} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
- tunnelBefehl="ssh -6 -t -t -L${lokPort}:${QuellIP}:22 ${sshHopp}"
+ tunnelBefehl="ssh -6 -t -t -L[::1]:${lokPort}:${QuellIP}:22 ${sshHopp}"
HoppIP="${sshHopp#*@}"
- Quelle="$(echo "$3" | sed "s|${QuellIP}|::1|")"
+ Quelle="$(echo "$3" | sed "s|${QuellIP}|[::1]|")"
else
usage
fi