diff options
Diffstat (limited to 'images')
-rwxr-xr-x | images/obfsvpn-client/start.sh | 4 | ||||
-rw-r--r-- | images/obfsvpn/scripts/functions.sh | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/images/obfsvpn-client/start.sh b/images/obfsvpn-client/start.sh index 44fa013..8de461d 100755 --- a/images/obfsvpn-client/start.sh +++ b/images/obfsvpn-client/start.sh @@ -8,9 +8,9 @@ if [ -z "$OBFS4_ENDPOINT" ]; then sed -i "s/(^remote) .* ([[:digit:]])/\1 obfsvpn-server \2/1" \ /vpn/client.ovpn fi -openvpn --config /vpn/client.ovpn --socks-proxy localhost 8080 & +openvpn --config /vpn/client.ovpn --socks-proxy localhost 8080 -ping -c5 10.8.0.1 +# ping -c5 10.8.0.1 exit $? diff --git a/images/obfsvpn/scripts/functions.sh b/images/obfsvpn/scripts/functions.sh index 585615b..9c1ef6b 100644 --- a/images/obfsvpn/scripts/functions.sh +++ b/images/obfsvpn/scripts/functions.sh @@ -33,7 +33,7 @@ function createConfig() { # for reusing in the obfsvpn-client container cp config/client.ovpn "$APP_PERSIST_DIR/" - echo -e "\nremote $HOST_ADDR $PORT" >> "$CLIENT_PATH/client.ovpn" + echo -n "remote obfsvpn-server $PORT" >> "$CLIENT_PATH/client.ovpn" # Embed client authentication files into config file cat <(echo -e '<ca>') \ |