diff options
| author | Clément Zrounba <6691770+clement-z@users.noreply.github.com> | 2023-11-21 13:47:35 +0100 |
|---|---|---|
| committer | Clément Zrounba <6691770+clement-z@users.noreply.github.com> | 2023-11-21 13:47:35 +0100 |
| commit | d89003fee31325dcc0f7d115d9e2b10109e25491 (patch) | |
| tree | 26fdf53baf4b4071490a46dfac7363715b271c6a /proxy-tcp-ssh.sh | |
| parent | 46341722d29132b83619b95b3c6427b10b96fe1a (diff) | |
| download | proxy-tcp-ssh-master.tar.gz proxy-tcp-ssh-master.zip | |
Diffstat (limited to 'proxy-tcp-ssh.sh')
| -rwxr-xr-x | proxy-tcp-ssh.sh | 4 |
1 files changed, 3 insertions, 1 deletions
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... " |
