aboutsummaryrefslogtreecommitdiff
path: root/proxy-tcp-ssh.sh
diff options
context:
space:
mode:
Diffstat (limited to 'proxy-tcp-ssh.sh')
-rwxr-xr-xproxy-tcp-ssh.sh4
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... "