From cf320a7a2d0f8dc92bf33daa2871b9c4d08050f5 Mon Sep 17 00:00:00 2001 From: bol-van Date: Mon, 4 Nov 2024 20:34:38 +0300 Subject: [PATCH] fix tpws ipv6 reload on interface change in openwrt --- init.d/openwrt/90-zapret | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.d/openwrt/90-zapret b/init.d/openwrt/90-zapret index 8cb05f5..87da85d 100644 --- a/init.d/openwrt/90-zapret +++ b/init.d/openwrt/90-zapret @@ -19,7 +19,7 @@ check_need_to_reload_tpws6() # interface ifsets (wanif, wanif6, lanif) can be reloaded independently check_lan RELOAD_TPWS6= - [ "$ACTION" = "ifup" -a "$DISABLE_IPV6" != 1 -a -n "$IS_LAN" ] && [ "$MODE" = "tpws" -o "$MODE" = "custom" ] && RELOAD_TPWS6=1 + [ "$ACTION" = "ifup" -a "$TPWS_ENABLE" = 1 -a "$DISABLE_IPV6" != 1 -a -n "$IS_LAN" ] && RELOAD_TPWS6=1 }