diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/autotunnel | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/autotunnel b/scripts/autotunnel index 2a1f17b..0a2d8d0 100755 --- a/scripts/autotunnel +++ b/scripts/autotunnel @@ -1,5 +1,7 @@ #!/usr/bin/env bash +set -eou pipefail + if [ -z "$SERVER_ALIVE_INTERVAL" ];then SERVER_ALIVE_INTERVAL=45 fi @@ -17,5 +19,5 @@ fi -o ServerAliveInterval="$SERVER_ALIVE_INTERVAL" \ -o ServerAliveCountMax="$SERVER_ALIVE_COUNT_MAX" \ -o TCPKeepAlive=yes \ - -w $TUN_DEVICE:$TUN_DEVICE \ - $HOST + -w "$TUN_DEVICE":"$TUN_DEVICE" \ + "$HOST" |