Fix LAN match in script mode

This commit is contained in:
Optimus Primal
2020-12-11 13:13:08 +08:00
committed by GitHub
parent 60d0af9f8c
commit cdde464334

View File

@@ -108,7 +108,8 @@ script:
"PROXY": "Proxy",
"Apple": "Apple",
"Domestic": "Domestic",
"Domestic IPs": "Domestic"
"Domestic IPs": "Domestic",
"LAN": "DIRECT"
}
port = int(metadata["dst_port"])
@@ -125,8 +126,6 @@ script:
return "DIRECT"
code = ctx.geoip(ip)
if code == "LAN":
return "DIRECT"
if code == "CN":
return "Domestic"