aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWojciech Kosior <kwojtus@protonmail.com>2020-06-12 16:24:22 +0200
committerWojciech Kosior <kwojtus@protonmail.com>2020-06-12 16:24:22 +0200
commitb4f3cc48f96b745f89994559d800e3e40aae19a8 (patch)
tree088647419fc1647769ddf8f30c9a14b8295d4fd0 /src
parent4bbbe84517b1cd471ba6f84596b8cd39ecbff047 (diff)
download0tdns-b4f3cc48f96b745f89994559d800e3e40aae19a8.tar.gz
0tdns-b4f3cc48f96b745f89994559d800e3e40aae19a8.zip
do not retry on failed connections
Diffstat (limited to 'src')
-rwxr-xr-xsrc/vpn_wrapper.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vpn_wrapper.sh b/src/vpn_wrapper.sh
index 38eeaba..6b51f84 100755
--- a/src/vpn_wrapper.sh
+++ b/src/vpn_wrapper.sh
@@ -51,7 +51,7 @@ echo nameserver $DEFAULT_DNS > /etc/netns/$NAMESPACE_NAME/resolv.conf
$OVPN_COMMAND --ifconfig-noexec --route-noexec --up $NETNS_SCRIPT \
--route-up $NETNS_SCRIPT --down $NETNS_SCRIPT \
--config "$OPENVPN_CONFIG" --script-security 2 \
- --connect-timeout 20 \
+ --connect-timeout 20 --connect-retry-max 1 \
--setenv NAMESPACE_NAME $NAMESPACE_NAME \
--setenv WRAPPER_PID $$ \
--setenv VETH_HOST0 $VETH_HOST0 \