mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Force to disable defaultroute and DNS for DHCP interfaces
This commit is contained in:
parent
32e7875330
commit
23fcb1715a
1 changed files with 2 additions and 0 deletions
|
@ -56,6 +56,8 @@ interface_multipath_settings() {
|
|||
[ "$mode" != "off" ] && {
|
||||
[ -n "$mptcpintf" ] && mptcpintf="$mptcpintf $iface"
|
||||
[ -z "$mptcpintf" ] && mptcpintf="$iface"
|
||||
uci -q set network.${config}.defaultroute=0
|
||||
uci -q set network.${config}.peerdns=0
|
||||
}
|
||||
[ "$mode" = "master" ] && {
|
||||
mode="on"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue