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

Revert VPN MTU to 1500 and default VPN to Glorytun TCP

This commit is contained in:
Ycarus (Yannick Chabanois) 2023-09-01 09:24:52 +02:00
parent 4a1ac7bbbb
commit e880e13d16
2 changed files with 6 additions and 6 deletions

View file

@ -91,9 +91,9 @@ interface_max_metric() {
fi fi
elif [ "$1" = "omrvpn" ]; then elif [ "$1" = "omrvpn" ]; then
uci -q batch <<-EOF >/dev/null uci -q batch <<-EOF >/dev/null
set network.${config}.metric=9000 set network.${config}.metric=1500
commit network commit network
set openmptcprouter.${config}.metric=9000 set openmptcprouter.${config}.metric=1500
commit openmptcprouter commit openmptcprouter
EOF EOF
elif [ "$1" = "omr6in4" ]; then elif [ "$1" = "omr6in4" ]; then

View file

@ -149,16 +149,16 @@ if [ "$(uci -q get network.tun0.mtu)" = "1200" ] || [ -z "$(uci -q get network.t
uci -q batch <<-EOF >/dev/null uci -q batch <<-EOF >/dev/null
set network.tun0=device set network.tun0=device
set network.tun0.name='tun0' set network.tun0.name='tun0'
set network.tun0.mtu=9000 set network.tun0.mtu=1500
commit network commit network
EOF EOF
fi fi
if [ "$(uci -q get openmptcprouter.settings.vpn)" = "" ]; then if [ "$(uci -q get openmptcprouter.settings.vpn)" = "" ]; then
uci -q batch <<-EOF >/dev/null uci -q batch <<-EOF >/dev/null
set openmptcprouter.settings.vpn='glorytun_udp' set openmptcprouter.settings.vpn='glorytun_tcp'
set glorytun-udp.vpn.enable='1' set glorytun.vpn.enable='1'
commit glorytun-udp commit glorytun
commit openmptcprouter commit openmptcprouter
EOF EOF
fi fi