hiddify / hiddify-next

Multi-platform auto-proxy client, supporting Sing-box, X-ray, TUIC, Hysteria, Reality, Trojan, SSH etc. It’s an open-source, secure and ad-free.
https://hiddify.com
Other
15.33k stars 1.41k forks source link

Unable to bypass websites in China under version 1.5.2, and slower access to websites in China #1036

Open rain-0 opened 1 month ago

rain-0 commented 1 month ago

Search first

What Happened?

When accessing websites in China, I observed that the proxy line is still used, but I have set the region to cn in the config.

Minimal Reproducible Example (MRE)

1.connect

  1. Visit any Chinese website, e.g. www.bilibili.com
  2. Access was found to be slower than when the agent was not activated, and real-time traffic readings were observed

Expected Behavior

Access to Chinese websites should not go through a proxy and will not be slowed down

Version

1.5.2

Platform/OS

Windows

Additional Context

No response

Application Config Options

{
  "region": "cn",
  "block-ads": false,
  "execute-config-as-is": false,
  "log-level": "info",
  "resolve-destination": false,
  "ipv6-mode": "ipv4_only",
  "remote-dns-address": "udp://1.1.1.1",
  "remote-dns-domain-strategy": "prefer_ipv4",
  "direct-dns-address": "223.5.5.5",
  "direct-dns-domain-strategy": "prefer_ipv4",
  "mixed-port": 2334,
  "tproxy-port": 2335,
  "local-dns-port": 6450,
  "tun-implementation": "mixed",
  "mtu": 9000,
  "strict-route": false,
  "connection-test-url": "http://connectivitycheck.gstatic.com/generate_204",
  "url-test-interval": 1800,
  "enable-clash-api": true,
  "clash-api-port": 6756,
  "enable-tun": false,
  "enable-tun-service": false,
  "set-system-proxy": true,
  "bypass-lan": false,
  "allow-connection-from-lan": false,
  "enable-fake-dns": false,
  "enable-dns-routing": true,
  "independent-dns-cache": true,
  "rules": [],
  "mux": {
    "enable": false,
    "padding": false,
    "max-streams": 8,
    "protocol": "h2mux"
  },
  "tls-tricks": {
    "enable-fragment": false,
    "fragment-size": "1-500",
    "fragment-sleep": "0-500",
    "mixed-sni-case": false,
    "enable-padding": false,
    "padding-size": "1-1500"
  },
  "warp": {
    "enable": false,
    "mode": "proxy_over_warp",
    "wireguard-config": "",
    "license-key": "",
    "account-id": "",
    "access-token": "",
    "clean-ip": "auto",
    "clean-port": 0,
    "noise": "5-10",
    "noise-delay": "20-200"
  },
  "warp2": {
    "enable": false,
    "mode": "proxy_over_warp",
    "wireguard-config": "",
    "license-key": "",
    "account-id": "",
    "access-token": "",
    "clean-ip": "auto",
    "clean-port": 0,
    "noise": "5-10",
    "noise-delay": "20-200"
  }
}

Relevant log output

+0800 2024-07-11 19:17:14 ERROR [173232431 140ms] inbound/mixed[mixed-in]: process connection from 127.0.0.1:8066: read payload: read tcp 127.0.0.1:2334->127.0.0.1:8066: wsarecv: An existing connection was forcibly closed by the remote host.

Are you willing to submit a PR? If you know how to fix the bug.

hiddify-com commented 1 month ago

would you please use china dns for remote dns also? if it fix the issue i will solve it quickly

ChaNg1o1 commented 1 month ago

Me too

rain-0 commented 1 month ago

would you please use china dns for remote dns also? if it fix the issue i will solve it quickly

I set the remote DNS to udp://223.5.5.5 (a Chinese dns service), and it didn't get any better My current configuration is as follows { "region": "cn", "block-ads": false, "execute-config-as-is": false, "log-level": "info", "resolve-destination": false, "ipv6-mode": "ipv4_only", "remote-dns-address": "udp://223.5.5.5", "remote-dns-domain-strategy": "prefer_ipv4", "direct-dns-address": "udp://223.5.5.5", "direct-dns-domain-strategy": "prefer_ipv4", "mixed-port": 2334, "tproxy-port": 2335, "local-dns-port": 6450, "tun-implementation": "mixed", "mtu": 9000, "strict-route": false, "connection-test-url": "http://connectivitycheck.gstatic.com/generate_204", "url-test-interval": 1800, "enable-clash-api": true, "clash-api-port": 6756, "enable-tun": false, "enable-tun-service": false, "set-system-proxy": true, "bypass-lan": false, "allow-connection-from-lan": false, "enable-fake-dns": false, "enable-dns-routing": true, "independent-dns-cache": true, "rules": [], "mux": { "enable": false, "padding": false, "max-streams": 8, "protocol": "h2mux" }, "tls-tricks": { "enable-fragment": false, "fragment-size": "1-500", "fragment-sleep": "0-500", "mixed-sni-case": false, "enable-padding": false, "padding-size": "1-1500" }, "warp": { "enable": false, "mode": "proxy_over_warp", "wireguard-config": "", "license-key": "", "account-id": "", "access-token": "", "clean-ip": "auto", "clean-port": 0, "noise": "5-10", "noise-delay": "20-200" }, "warp2": { "enable": false, "mode": "proxy_over_warp", "wireguard-config": "", "license-key": "", "account-id": "", "access-token": "", "clean-ip": "auto", "clean-port": 0, "noise": "5-10", "noise-delay": "20-200" } }

yangdehui commented 1 month ago

您是否也请将中国 DNS 用于远程 DNS?如果可以解决问题,我会尽快解决

DNS是否可以配置成组,dns-add: [223.5.5.5, 8.8.4.4]