Merge pull request #425 from mwhds97/patch-1

Fix LAN match in script mode
pull/426/head
lhie1 4 years ago committed by GitHub
commit 5f23c11766
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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"

Loading…
Cancel
Save