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:
parent
ce960ad15c
commit
fd4934a1e6
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue