Last active
March 20, 2025 17:37
-
-
Save ettingshausen/a7e8c55451b28293acc3cb850922950f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function main(config, profileName) { | |
const prependProxies = [{ name: "docker-easyconnect", server: "127.0.0.1", port: 1080, type: "socks5", username: "", password: "", tls: false }] | |
config.proxies = prependProxies.concat(config.proxies) | |
const prependProxisGroup = [{ name: "EasyConnect", type: "select", proxies: ["docker-easyconnect", "DIRECT"] }] | |
config["proxy-groups"] = prependProxisGroup.concat(config["proxy-groups"]) | |
const prependRules = ["DOMAIN-SUFFIX,oaifree.com,DIRECT", "IP-CIDR,172.16.0.0/16,EasyConnect", "DOMAIN,apple-relay.apple.com,🔰 选择节点"] | |
config.rules = prependRules.concat(config.rules.filter(r => { | |
return !r.includes("172.16.0") || !r.includes("172.17") | |
})) | |
return config; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment