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

View File

@ -80,7 +80,7 @@ dnat6_target()
# 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" = '-' ] || {
[ -n "$DNAT6_TARGET" ] || {
# no reason to query if its down
network_is_up lan || return

View File

@ -105,7 +105,7 @@ dnat6_target()
# 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" = '-' ] || {
[ -n "$DNAT6_TARGET" ] || {
local ct=0
while
DNAT6_TARGET=$(get_ipv6_linklocal $IFACE_LAN)