mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix tun0 mtu
This commit is contained in:
parent
1b02c5f174
commit
6365cfcc80
1 changed files with 2 additions and 2 deletions
|
@ -145,11 +145,11 @@ if [ "$(uci -q get glorytun-udp.vpn.key)" = "" ] && [ "$(uci -q get glorytun.vpn
|
|||
uci -q commit glorytun-udp
|
||||
fi
|
||||
|
||||
if [ "$(uci -q get network.tun0.metric)" = "1200" ] || [ -z "$(uci -q get network.tun0.metric)" ]; then
|
||||
if [ "$(uci -q get network.tun0.mtu)" = "1200" ] || [ -z "$(uci -q get network.tun0.mtu)" ]; then
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
set network.tun0=device
|
||||
set network.tun0.name='tun0'
|
||||
set network.tun0.metric=9000
|
||||
set network.tun0.mtu=9000
|
||||
commit network
|
||||
EOF
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue