Merge branch 'master' of https://github.com/lhie1/Rules
This commit is contained in:
+2
-3
@@ -108,7 +108,8 @@ script:
|
|||||||
"PROXY": "Proxy",
|
"PROXY": "Proxy",
|
||||||
"Apple": "Apple",
|
"Apple": "Apple",
|
||||||
"Domestic": "Domestic",
|
"Domestic": "Domestic",
|
||||||
"Domestic IPs": "Domestic"
|
"Domestic IPs": "Domestic",
|
||||||
|
"LAN": "DIRECT"
|
||||||
}
|
}
|
||||||
port = int(metadata["dst_port"])
|
port = int(metadata["dst_port"])
|
||||||
|
|
||||||
@@ -125,8 +126,6 @@ script:
|
|||||||
return "DIRECT"
|
return "DIRECT"
|
||||||
|
|
||||||
code = ctx.geoip(ip)
|
code = ctx.geoip(ip)
|
||||||
if code == "LAN":
|
|
||||||
return "DIRECT"
|
|
||||||
|
|
||||||
if code == "CN":
|
if code == "CN":
|
||||||
return "Domestic"
|
return "Domestic"
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ DOMAIN-SUFFIX,icloud.com
|
|||||||
DOMAIN-SUFFIX,icloud-content.com
|
DOMAIN-SUFFIX,icloud-content.com
|
||||||
DOMAIN-SUFFIX,itunes.com
|
DOMAIN-SUFFIX,itunes.com
|
||||||
DOMAIN-SUFFIX,me.com
|
DOMAIN-SUFFIX,me.com
|
||||||
|
DOMAIN-SUFFIX,mzstatic.com
|
||||||
IP-CIDR,17.0.0.0/8,no-resolve
|
IP-CIDR,17.0.0.0/8,no-resolve
|
||||||
IP-CIDR,63.92.224.0/19,no-resolve
|
IP-CIDR,63.92.224.0/19,no-resolve
|
||||||
IP-CIDR,65.199.22.0/23,no-resolve
|
IP-CIDR,65.199.22.0/23,no-resolve
|
||||||
|
|||||||
Reference in New Issue
Block a user