Browse Source

inits : combine identicals cases

pull/33/head
bolvan 6 years ago
parent
commit
52f3bf88bb
  1. 5
      init.d/openwrt/functions

5
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

Loading…
Cancel
Save