From 454351ae2e6d2ac9c34b9cffa2a9671ac983785e Mon Sep 17 00:00:00 2001 From: Anjan Nath Date: Mon, 13 Jun 2022 00:51:39 +0530 Subject: test: remove-later --- images/obfsvpn-client/start.sh | 4 ++-- 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 '') \ -- cgit v1.2.3