diff --git a/bin/openvpn.sh b/bin/openvpn.sh index 979e629..24f81da 100755 --- a/bin/openvpn.sh +++ b/bin/openvpn.sh @@ -52,6 +52,8 @@ do_init() { [ -n "$ptr" ] && cn=$ptr || cn=$ip4 fi + echo "$cn" > $OPENVPN/servername + easyrsa build-server-full $cn nopass [ -f "$OPENVPN/udp1194.conf" ] || cat > "$OPENVPN/udp1194.conf" <