mwan3: do not add mwan3_custom_v6 set if ipv6 is not available
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
parent
54fad2326e
commit
fedfbd5004
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ mwan3_set_custom_ipset()
|
||||||
|
|
||||||
mwan3_push_update -! create mwan3_connected list:set
|
mwan3_push_update -! create mwan3_connected list:set
|
||||||
mwan3_push_update -! add mwan3_connected mwan3_custom_v4
|
mwan3_push_update -! add mwan3_connected mwan3_custom_v4
|
||||||
mwan3_push_update -! add mwan3_connected mwan3_custom_v6
|
[ $NO_IPV6 -eq 0 ] && mwan3_push_update -! add mwan3_connected mwan3_custom_v6
|
||||||
error=$(echo "$update" | $IPS restore 2>&1) || LOG error "set_custom_ipset: $error"
|
error=$(echo "$update" | $IPS restore 2>&1) || LOG error "set_custom_ipset: $error"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue