1
0
mirror of https://github.com/bol-van/zapret.git synced 2025-05-01 03:12:57 +03:00

init : do not query for dnat6_target more than once

This commit is contained in:
bolvan 2019-05-15 17:25:44 +03:00
parent 73df81ce57
commit c5c55e5419
2 changed files with 2 additions and 2 deletions
init.d

@ -80,7 +80,7 @@ dnat6_target()
# link local address can appear not immediately after ifup # link local address can appear not immediately after ifup
# DNAT6_TARGET=- means attempt was made but address was not found (to avoid multiple re-attempts) # DNAT6_TARGET=- means attempt was made but address was not found (to avoid multiple re-attempts)
[ "$DNAT6_TARGET" = '-' ] || { [ -n "$DNAT6_TARGET" ] || {
# no reason to query if its down # no reason to query if its down
network_is_up lan || return network_is_up lan || return

@ -105,7 +105,7 @@ dnat6_target()
# link local address can appear not immediately after ifup # link local address can appear not immediately after ifup
# DNAT6_TARGET=- means attempt was made but address was not found (to avoid multiple re-attempts) # DNAT6_TARGET=- means attempt was made but address was not found (to avoid multiple re-attempts)
[ "$DNAT6_TARGET" = '-' ] || { [ -n "$DNAT6_TARGET" ] || {
local ct=0 local ct=0
while while
DNAT6_TARGET=$(get_ipv6_linklocal $IFACE_LAN) DNAT6_TARGET=$(get_ipv6_linklocal $IFACE_LAN)