From b2b91fa4371668f40803035888b098dcfbd8cef3 Mon Sep 17 00:00:00 2001 From: bol-van Date: Mon, 8 Mar 2021 16:20:16 +0300 Subject: [PATCH] init: dont wait ifup --- init.d/openwrt/zapret | 3 +-- init.d/sysv/functions | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/init.d/openwrt/zapret b/init.d/openwrt/zapret index e7bfb71..d1f075b 100755 --- a/init.d/openwrt/zapret +++ b/init.d/openwrt/zapret @@ -31,8 +31,7 @@ HOSTLIST="$ZAPRET_BASE/ipset/zapret-hosts.txt.gz" TPWS_OPT_BASE="--user=$TPWS_USER --port=$TPPORT" TPWS_OPT_BASE4="--bind-addr=$TPWS_LOCALHOST4" TPWS_OPT_BASE6="--bind-addr=::1" -TPWS_WAIT="--bind-wait-ifup=30 --bind-wait-ip=30" -# first wait for lan to ifup, then wait for bind-wait-ip-linklocal seconds for link local address and bind-wait-ip for any ipv6 as the worst case +TPWS_WAIT="--bind-wait-ip=60" TPWS_OPT_BASE6_PRE="--bind-linklocal=prefer $TPWS_WAIT --bind-wait-ip-linklocal=3" run_daemon() diff --git a/init.d/sysv/functions b/init.d/sysv/functions index 1391ed1..5e88b8c 100644 --- a/init.d/sysv/functions +++ b/init.d/sysv/functions @@ -24,7 +24,7 @@ HOSTLIST="$ZAPRET_BASE/ipset/zapret-hosts.txt.gz" TPWS_OPT_BASE="--user=$WS_USER --port=$TPPORT" TPWS_OPT_BASE4="--bind-addr=$TPWS_LOCALHOST4" TPWS_OPT_BASE6="--bind-addr=::1" -TPWS_WAIT="--bind-wait-ifup=30 --bind-wait-ip=30" +TPWS_WAIT="--bind-wait-ip=60" # first wait for lan to ifup, then wait for bind-wait-ip-linklocal seconds for link local address and bind-wait-ip for any ipv6 as the worst case TPWS_OPT_BASE6_PRE="--bind-linklocal=prefer $TPWS_WAIT --bind-wait-ip-linklocal=3"