mirror of
https://github.com/bol-van/zapret.git
synced 2025-04-19 05:22:58 +03:00
init : do not query for dnat6_target more than once
This commit is contained in:
parent
73df81ce57
commit
c5c55e5419
@ -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
|
||||
|
||||
|
@ -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…
x
Reference in New Issue
Block a user