From 948b6511b71fbcf37e4730fe90911424c1b42322 Mon Sep 17 00:00:00 2001 From: hybtoy Date: Mon, 25 Sep 2017 10:40:38 +0500 Subject: [PATCH 1/2] "local" option removal Remove "local" option from server.conf. --- openvpn-install.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 21872de..21d10b1 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -598,7 +598,6 @@ set_var EASYRSA_CURVE $CERT_CURVE" > vars chmod 644 /etc/openvpn/crl.pem # Generate server.conf - echo "local $IP" > /etc/openvpn/server.conf echo "port $PORT" >> /etc/openvpn/server.conf if [[ "$PROTOCOL" = '1' ]]; then echo "proto udp" >> /etc/openvpn/server.conf From 07de8b9feb3645f8d2ee828205e8389790b3df02 Mon Sep 17 00:00:00 2001 From: Angristan Date: Mon, 25 Sep 2017 17:10:06 +0200 Subject: [PATCH 2/2] Update openvpn-install.sh --- openvpn-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 21d10b1..4bd0e58 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -598,7 +598,7 @@ set_var EASYRSA_CURVE $CERT_CURVE" > vars chmod 644 /etc/openvpn/crl.pem # Generate server.conf - echo "port $PORT" >> /etc/openvpn/server.conf + echo "port $PORT" > /etc/openvpn/server.conf if [[ "$PROTOCOL" = '1' ]]; then echo "proto udp" >> /etc/openvpn/server.conf elif [[ "$PROTOCOL" = '2' ]]; then