Browse Source

init : do not query for dnat6_target more than once

pull/33/head
bolvan 6 years ago
parent
commit
c5c55e5419
  1. 2
      init.d/openwrt/functions
  2. 2
      init.d/sysv/functions

2
init.d/openwrt/functions

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

2
init.d/sysv/functions

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

Loading…
Cancel
Save