1
0
Fork 0
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:
Ycarus 2019-04-03 20:17:18 +02:00
parent 32e7875330
commit 23fcb1715a

View file

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