Browse Source

mwan3: do not add mwan3_custom_v6 set if ipv6 is not available

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
lilik-openwrt-22.03
Florian Eckert 3 years ago
parent
commit
fedfbd5004
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      net/mwan3/files/lib/mwan3/mwan3.sh

+ 1
- 1
net/mwan3/files/lib/mwan3/mwan3.sh View File

@ -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…
Cancel
Save