Skip to content

Commit

Permalink
1.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
frainzy1477 committed Jun 14, 2020
1 parent a3310d8 commit 97ec026
Showing 1 changed file with 2 additions and 25 deletions.
27 changes: 2 additions & 25 deletions root/etc/init.d/clash
Original file line number Diff line number Diff line change
Expand Up @@ -403,27 +403,6 @@ rules(){
}


proxy_ip() {
#===========================================================================================================================
lan_ac_ips=$(uci get clash.config.proxy_lan_ips)
ipset -! -R <<-EOF
create clash_lan_ac hash:net
$(for ip in $lan_ac_ips; do echo "add clash_lan_ac $ip"; done)
EOF
#===========================================================================================================================
}


reject_ip() {
#===========================================================================================================================
lan_ac=$(uci get clash.config.reject_lan_ips)
ipset -! -R <<-EOF
create clash_lan hash:net
$(for ip in $lan_ac; do echo "add clash_lan $ip"; done)
EOF
#===========================================================================================================================
}

custom_list() {
sh /usr/share/clash/list.sh >/dev/null 2>&1
}
Expand Down Expand Up @@ -839,10 +818,8 @@ remove_mark(){
iptables -t nat -F clash_output >/dev/null 2>&1
iptables -t nat -X clash_output >/dev/null 2>&1

ipset -! flush proxy_lan >/dev/null 2>&1
ipset -! flush reject_lan >/dev/null 2>&1
ipset destroy reject_lan >/dev/null 2>&1
ipset destroy proxy_lan >/dev/null 2>&1
ipset destroy reject_lan 2>/dev/null 2>&1
ipset destroy proxy_lan 2>/dev/null 2>&1

iptables -t nat -D OUTPUT -p tcp -j clash_output >/dev/null 2>&1

Expand Down

0 comments on commit 97ec026

Please sign in to comment.