From a7a277e2dc5e6d77a355a4cb60bb85032d724c65 Mon Sep 17 00:00:00 2001 From: Angristan Date: Sun, 12 Nov 2017 15:48:39 +0100 Subject: [PATCH] Remove "local" parameter Revert https://github.com/Angristan/OpenVPN-install/commit/ad3c223385a9aa323227633fcc5e456d1235e873 On some servers, this prevented OpenVPN to start on boot. (Socket bind failed on local address [AF_INET] IP:1194 Cannot assign requested address) --- openvpn-install.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index be8f3fe..c826160 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -428,8 +428,7 @@ WantedBy=multi-user.target" > /etc/systemd/system/rc-local.service chmod 644 /etc/openvpn/crl.pem # Generate server.conf - echo "local $IP" > /etc/openvpn/server.conf - echo "port $PORT" >> /etc/openvpn/server.conf + echo "port $PORT" > /etc/openvpn/server.conf if [[ "$PROTOCOL" = 'UDP' ]]; then echo "proto udp" >> /etc/openvpn/server.conf elif [[ "$PROTOCOL" = 'TCP' ]]; then