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:
parent
e88ad9674f
commit
730a904b85
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue