Browse Source

compatible with proxy-all mode with musicunlock

coolsnowwolf 5 years ago
parent
commit
508e64e2eb
2 changed files with 5 additions and 2 deletions
  1. 2 2
      luci-app-ssr-plus/Makefile
  2. 3 0
      luci-app-ssr-plus/root/usr/bin/ssr-rules

+ 2 - 2
luci-app-ssr-plus/Makefile

@@ -1,8 +1,8 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=luci-app-ssr-plus
-PKG_VERSION:=177
-PKG_RELEASE:=2
+PKG_VERSION:=178
+PKG_RELEASE:=1
 
 include $(INCLUDE_DIR)/package.mk
 

+ 3 - 0
luci-app-ssr-plus/root/usr/bin/ssr-rules

@@ -125,6 +125,9 @@ ipset_r() {
 	ipset -N blacklist hash:net 2>/dev/null
 	$IPT -I SS_SPEC_WAN_AC -m set --match-set blacklist dst -j SS_SPEC_WAN_FW
 	$IPT -I SS_SPEC_WAN_AC -m set --match-set whitelist dst -j RETURN
+	if [ $(ipset list music -name -quiet | grep music) ]; then
+   $IPT -I SS_SPEC_WAN_AC -m set --match-set music dst -j RETURN 2>/dev/null
+	fi
 	for ip in $WAN_BP_IP; do ipset -! add whitelist $ip; done
 	for ip in $WAN_FW_IP; do ipset -! add blacklist $ip; done
 	if [ "$NETFLIX" != "0" ]; then