diff options
author | Erich Eckner <git@eckner.net> | 2017-11-20 19:14:23 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-11-20 19:14:23 +0100 |
commit | 8c686c81f586faab7a84b26d7493596c92c8b191 (patch) | |
tree | 3d5f95dbc9cf71f92036d481483a89cceb744e7b | |
parent | 6bd281f41a3927439c8555498efb27e0836b0397 (diff) | |
download | hardlinkedBackups-8c686c81f586faab7a84b26d7493596c92c8b191.tar.xz |
backup: bugfix IpV6 tunnel
-rwxr-xr-x | backup.in | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |