1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-24 14:54:24 +00:00

Force correction of MTU previous issue (#446)

This commit is contained in:
suyuan 2024-03-05 16:05:57 +08:00 committed by GitHub
commit d83bf9a512
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -125,6 +125,7 @@ interface_multipath_settings() {
else else
metric="$(uci -q get openmptcprouter.${config}.metric)" metric="$(uci -q get openmptcprouter.${config}.metric)"
fi fi
[ "$metric" -gt 9900 ] && metric=$((metric-9000))
if [ "${config}" = "lan" ] || [ "$(uci -q get network.${config}.ip4table)" = "lan" ]; then if [ "${config}" = "lan" ] || [ "$(uci -q get network.${config}.ip4table)" = "lan" ]; then
metric="9999" metric="9999"
fi fi