summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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