summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnjan Nath <kaludios@gmail.com>2022-06-13 00:51:39 +0530
committeratanarjuat <atanarjuat@example.com>2022-07-28 02:04:27 -0400
commit454351ae2e6d2ac9c34b9cffa2a9671ac983785e (patch)
tree916bfd44a406b80a0e8dda095d3236f1198148d5
parentee1bb60aeb63618531ed81a5125b96a498d7f9e7 (diff)
test: remove-later
-rwxr-xr-ximages/obfsvpn-client/start.sh4
-rw-r--r--images/obfsvpn/scripts/functions.sh2
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>') \