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

Set LAN with higher metric

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-01-29 17:10:53 +01:00
parent e88ad9674f
commit 730a904b85

View file

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