fix(ufw): set missing openvpn ipv6 variables

fix #1607
Add missing pivpnNETv6 variable definition for OpenVPN
This commit is contained in:
4s3ti 2022-10-08 02:39:53 +02:00
parent 5fd030c7ba
commit ab1fe20399
No known key found for this signature in database
GPG key ID: AC2D3B898F96BC51

View file

@ -1744,6 +1744,15 @@ setOpenVPNDefaultVars() {
fi fi
vpnGw="$(cut -d '.' -f 1-3 <<< "${pivpnNET}").1" vpnGw="$(cut -d '.' -f 1-3 <<< "${pivpnNET}").1"
if [[ "${pivpnenableipv6}" -eq 1 ]] \
&& [[ -z "${pivpnNETv6}" ]]; then
pivpnNETv6="fd11:5ee:bad:c0de::"
fi
if [[ "${pivpnenableipv6}" -eq 1 ]]; then
vpnGwv6="${pivpnNETv6}1"
fi
} }
setWireguardDefaultVars() { setWireguardDefaultVars() {