1
0
Fork 0
mirror of https://github.com/NeoCloud/NeoNetwork synced 2024-11-25 20:00:41 +08:00

vpn: wg-postup: make IPv6 PTP optional

This commit is contained in:
Neo_Chen 2021-01-09 13:48:06 +08:00
parent ce960ad15c
commit fd4934a1e6

View file

@ -8,5 +8,8 @@ PEER_IPV6="$5"
ip addr del "$LOCAL_IP" dev "$IF"
ip addr add "$LOCAL_IP" peer "$PEER_IP" dev "$IF"
ip addr del "$LOCAL_IPV6" dev "$IF"
ip addr add "$LOCAL_IPV6" peer "$PEER_IPV6" dev "$IF"
if [ "$#" -ge 5 ]; then
ip addr del "$LOCAL_IPV6" dev "$IF"
ip addr add "$LOCAL_IPV6" peer "$PEER_IPV6" dev "$IF"
fi