From d89003fee31325dcc0f7d115d9e2b10109e25491 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Zrounba?= <6691770+clement-z@users.noreply.github.com> Date: Tue, 21 Nov 2023 13:47:35 +0100 Subject: update --- proxy-tcp-ssh.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'proxy-tcp-ssh.sh') diff --git a/proxy-tcp-ssh.sh b/proxy-tcp-ssh.sh index ac30bb4..64be43b 100755 --- a/proxy-tcp-ssh.sh +++ b/proxy-tcp-ssh.sh @@ -199,7 +199,7 @@ function start_and_monitor_tunnels() { # - try again after a timeout if exit code is not 0 # - exit if exit code is 0 # NOTE: for now we just **always** try again after timeout - local timeout_sec=${1:-10} + local timeout_sec=${1:-5} local ntunnels=${#TUNNEL_PORTS_LOCAL[*]} @@ -212,6 +212,8 @@ function start_and_monitor_tunnels() { ssh_tunnel_opt+=("${BIND_IF}:${local_port}:${TUNNEL_HOST}:${remote_port}") done + echo "pid=$$" + while true; do # Try establishing the tunnel echo -n "Starting tunnel... " -- cgit v1.2.3