From 52f3bf88bb6a633fb4c62c1a7eef55e7632fd628 Mon Sep 17 00:00:00 2001 From: bolvan Date: Thu, 23 May 2019 19:36:49 +0300 Subject: [PATCH] inits : combine identicals cases --- init.d/openwrt/functions | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/init.d/openwrt/functions b/init.d/openwrt/functions index 4d87cdd..1dea172 100644 --- a/init.d/openwrt/functions +++ b/init.d/openwrt/functions @@ -201,7 +201,7 @@ create_ipset() zapret_apply_firewall() { case "${MODE}" in - tpws_hostlist) + tpws_hostlist|tpws_all) fw_tpws "--dport 80" "--dport 80" $TPPORT_HTTP ;; tpws_ipset) @@ -213,9 +213,6 @@ zapret_apply_firewall() fw_tpws "--dport 80 -m set --match-set zapret dst" "--dport 80 -m set --match-set zapret6 dst" $TPPORT_HTTP fw_tpws "--dport 443 -m set --match-set zapret dst" "--dport 443 -m set --match-set zapret6 dst" $TPPORT_HTTPS ;; - tpws_all) - fw_tpws "--dport 80" "--dport 80" $TPPORT_HTTP - ;; tpws_all_https) fw_tpws "--dport 80" "--dport 80" $TPPORT_HTTP fw_tpws "--dport 443" "--dport 443" $TPPORT_HTTPS