mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-19 03:10:16 +00:00
fix(ufw): set missing openvpn ipv6 variables
fix #1607 Add missing pivpnNETv6 variable definition for OpenVPN
This commit is contained in:
parent
5fd030c7ba
commit
ab1fe20399
1 changed files with 9 additions and 0 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue