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

Merge pull request #333 from Ysurac/develop

Fix tun0 mtu
This commit is contained in:
suyuan 2023-07-23 15:35:52 +08:00 committed by GitHub
commit 6137a719ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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