1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Fixes for IPv6 support

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-05-14 21:16:12 +02:00
parent 4894da909e
commit ff7e84bf78
2 changed files with 9 additions and 2 deletions

View file

@ -42,6 +42,7 @@ while true; do
[ "$ipv6_gw" = "::" ] && ipv6_gw='fd80::a00:1'
[ -z "$ipv6_gw" ] && ipv6_gw='fd80::a00:1'
#[ -z "$ipv6_gw" ] && ipv6_gw='fe80::aff:ff01'
ip -6 route add ${ipv6_gw} dev 6in4-omr6in4
ip -6 route replace default via ${ipv6_gw} dev 6in4-omr6in4 > /dev/null 2>&1
if [ "$(uci -q get openmptcprouter.settings.uci_route)" = "1" ]; then
uci -q batch <<-EOF