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