Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问 这段代码如何修改到tomoon里边,育碧服务器经常性掉线 #37

Open
tencentemr opened this issue Sep 23, 2023 · 0 comments

Comments

@tencentemr
Copy link

玩荣耀战神 在线模式无法加入,单机模式 一会就会掉线。
找到类似问题的解决方案,https://github.com/Fndroid/clash_for_windows_pkg/issues/2198
但是不知道如何加入到tomoon里边。

function FindProxyForURL(url, host) {
if (
dnsDomainIs(host, "ubisoft.com") ||
shExpMatch(host, "(.ubisoft.com|ubisoft.com|ubisoft)") ||
dnsDomainIs(host, "ubi.com") ||
shExpMatch(host, "(
.ubi.com|ubi.com)") ||
dnsDomainIs(host, "akamaihd.net") ||
shExpMatch(host, "(*.akamaihd.net|akamaihd.net)")
)
return "SOCKS5 127.0.0.1:%mixed-port%;DIRECT";

if (
isPlainHostName(host) ||
shExpMatch(host, "*.local") ||
isInNet(host, "10.0.0.0", "255.0.0.0") ||
isInNet(host, "127.0.0.0", "255.0.0.0") ||
isInNet(host, "172.16.0.0", "255.240.0.0") ||
isInNet(host, "192.168.0.0", "255.255.0.0") ||
isInNet(dnsResolve(host), "10.0.0.0", "255.0.0.0") ||
isInNet(dnsResolve(host), "127.0.0.0", "255.0.0.0") ||
isInNet(dnsResolve(host), "172.16.0.0", "255.240.0.0") ||
isInNet(dnsResolve(host), "192.168.0.0", "255.255.0.0")
) {
return "DIRECT";
} else {
return "PROXY 127.0.0.1:%mixed-port%";
}
}

有哪位大神知道 请赐教

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant