mirror of
https://github.com/Ysurac/openmptcprouter-vps.git
synced 2025-02-14 12:21:56 +00:00
Fix IPv6 ULA problem
This commit is contained in:
parent
ef69f2bfec
commit
9b47f9b25b
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ if [ "$1" = "start" ]; then
|
|||
ip tunnel add ${DEV} mode sit remote ${REMOTEIP} local ${LOCALIP}
|
||||
ip -6 addr add ${LOCALIP6} dev ${DEV}
|
||||
ip link set ${DEV} up
|
||||
[ -n "$ULA" ] && ip route replace ${ULA} via $(echo ${REMOTEIP6} | cut -d/ -f1) dev ${DEV}
|
||||
[ -n "$ULA" ] && [ "$ULA" != "auto" ] && ip route replace ${ULA} via $(echo ${REMOTEIP6} | cut -d/ -f1) dev ${DEV}
|
||||
fi
|
||||
if [ "$1" = "stop" ]; then
|
||||
ip tunnel del ${DEV}
|
||||
|
|
Loading…
Reference in a new issue