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

升级 1.9.20/1.9.21 版本后 Chrome 无法打开任何网站 #4045

Closed
gubiao opened this issue Nov 27, 2024 · 11 comments
Closed

升级 1.9.20/1.9.21 版本后 Chrome 无法打开任何网站 #4045

gubiao opened this issue Nov 27, 2024 · 11 comments

Comments

@gubiao
Copy link

gubiao commented Nov 27, 2024

预期行为

使用自定义配置(手工编辑 json 配置文件), 升级 1.9.20/1.9.21 版本后功能正常, Chrome 可以打开任意网站

实际行为

相同的自定义配置, 使用 1.9.19 版本功能全部正常, 升级 1.9.20/1.9.21 版本后 Chrome 无法打开任何网站

复现方法

  1. 升级 1.9.20 版本
  2. 新建“自定义配置”
  3. 使用 Chrome 打开任意网站进行测试

日志信息

环境信息

vivo Z5 / Android 10

额外信息(可选)

最大可能是这个c78e624 导致的,版本退回 1.9.19 后功能全部正常

@2dust
Copy link
Owner

2dust commented Nov 27, 2024

你用其他app比如youtube,能否使用?

@gubiao
Copy link
Author

gubiao commented Nov 27, 2024

你用其他app比如youtube,能否使用?

微信可以用, 1.9.20/1.9.21 开启代理后点界面下边的测试是正常的, Chrome 百度都打不开,提示页显示“无法连接到代理服务器“类似的提示,看起来像是 Chrome 要走 HTTP 代理?
inbound配置:

  "inbounds": [
    {
      "listen": "127.0.0.1",
      "port": 10808,
      "protocol": "socks",
      "sniffing": {
        "enabled": true,
        "routeOnly": true,
        "destOverride": [
          "http",
          "tls"
        ]
      },
      "tag": "proxy-in"
    },
    {
      "listen": "127.0.0.1",
      "port": 10853,
      "protocol": "dokodemo-door",
      "settings": {
        "address": "223.5.5.5",
        "port": 53,
        "network": "udp"
      },
      "tag": "dns-in"
    }
  ]

@2dust
Copy link
Owner

2dust commented Nov 27, 2024

c78e624
这个提交就是给vpn附件了一个http proxy,你的浏览器用了,你在路由规则里面导入白名单试一试

@gubiao
Copy link
Author

gubiao commented Nov 27, 2024

现在用的路由规则就是所有国内IP直连,所有非国内IP走代理,看起来路由规则影响不了 Chrome, 因为Chrome提示页显示的无法连接到代理服务器,chrome的流量还没有到xray的入站

@gubiao
Copy link
Author

gubiao commented Nov 27, 2024

自定义配置在 1.9.19 中功能正常:

{
  "log": {
    "loglevel": "none",
    "dnsLog": false
  },
  "dns": {
    "hosts": {
      "localhost": "127.0.0.1"
    },
    "servers": [
      {
        "address": "223.5.5.5",
        "expectIPs": [
          "ext:geoip-only-cn-private.dat:cn"
        ]
      },
      {
        "address": "8.8.8.8",
        "domains": [
          "domain:gstatic.com",
          "domain:gstatic.cn",
          "domain:gstatic-cn.com",
          "domain:googleapis.com",
          "domain:googleapis.cn",
          "domain:googleapis-cn.com",
          "domain:googleusercontent.com"
        ]
      }
    ],
    "queryStrategy": "UseIPv4",
    "disableFallbackIfMatch": true
  },
  "inbounds": [
    {
      "listen": "127.0.0.1",
      "port": 10808,
      "protocol": "socks",
      "sniffing": {
        "enabled": true,
        "routeOnly": true,
        "destOverride": [
          "http",
          "tls"
        ]
      },
      "tag": "proxy-in"
    },
    {
      "listen": "127.0.0.1",
      "port": 10853,
      "protocol": "dokodemo-door",
      "settings": {
        "address": "223.5.5.5",
        "port": 53,
        "network": "udp"
      },
      "tag": "dns-in"
    }
  ],
  "outbounds": [
    {
      "protocol": "vless",
      "settings": {
        "vnext": [
          {
            "address": "x.x.x.x",
            "port": 443,
            "users": [
              {
                "id": "xxxxxx",
                "encryption": "none"
              }
            ]
          }
        ]
      },
      "streamSettings": {
        "network": "http",
        "httpSettings": {
          "host": [
            "www.xxxxxx.com"
          ],
          "path": "/h2",
          "read_idle_timeout": 10,
          "health_check_timeout": 15
        },
        "security": "reality",
        "realitySettings": {
          "fingerprint": "chrome",
          "serverName": "www.xxxxxx.com",
          "publicKey": "xxxxxx",
          "shortId": "xxxx"
        }
      },
      "mux": {
        "enabled": false,
        "concurrency": -1
      },
      "tag": "proxy"
    },
    {
      "protocol": "dns",
      "settings": {
        "address": "223.5.5.5",
        "nonIPQuery": "skip"
      },
      "tag": "dns-out"
    },
    {
      "protocol": "freedom",
      "settings": {
        "domainStrategy": "UseIPv4"
      },
      "tag": "direct"
    },
    {
      "protocol": "blackhole",
      "tag": "block"
    }
  ],
  "routing": {
    "domainStrategy": "IPIfNonMatch",
    "rules": [
      {
        "inboundTag": [
          "dns-in"
        ],
        "outboundTag": "dns-out"
      },
      {
        "ip": [
          "223.5.5.5"
        ],
        "outboundTag": "direct"
      },
      {
        "ip": [
          "8.8.8.8"
        ],
        "outboundTag": "proxy"
      },
      {
        "ip": [
          "0.0.0.0/8"
        ],
        "outboundTag": "block"
      },
      {
        "domain": [
          "domain:doubleclick.net",
          "domain:googlesyndication.com",
          "domain:googleadservices.com",
          "domain:google-analytics.com",
          "domain:googletagmanager.com",
          "domain:cloudflareinsights.com",
          "domain:amazon-adsystem.com",
          "domain:buysellads.com",
          "domain:buysellads.net",
          "domain:hm.baidu.com",
          "domain:51.la",
          "domain:lowendbox.com",
          "domain:p.twitter.com",
          "domain:platform.twitter.com"
        ],
        "outboundTag": "block"
      },
      {
        "domain": [
          "domain:qq.com",
          "domain:qqmail.com",
          "domain:gtimg.com",
          "domain:cdn-go.cn",
          "domain:cdntip.com",
          "domain:qlogo.cn",
          "domain:weixinbridge.com",
          "domain:baidu.com",
          "domain:bdimg.com",
          "domain:bcebos.com",
          "domain:bdstatic.com"
        ],
        "outboundTag": "direct"
      },
      {
        "ip": [
          "ext:geoip-only-cn-private.dat:private",
          "ext:geoip-only-cn-private.dat:cn"
        ],
        "outboundTag": "direct"
      }
    ]
  }
}

@2dust
Copy link
Owner

2dust commented Nov 27, 2024

你的自定义配置是没有http inboud的吗?
你加上一个http 试一试,可能是这里的问题

@gubiao
Copy link
Author

gubiao commented Nov 27, 2024

你加上一个http 试一试,可能是这里的问题

感谢🙏,刚试了, 把“设置->进阶设置->HTTP代理端口” 由默认的 10809 改成 10808 后 Chrome 功能正常了( Xray 的 socket 入站可以直接支持 HTTP 代理协议 )

@2dust
Copy link
Owner

2dust commented Nov 27, 2024

xray是支持这样用的,暂时这样用应该没有问题。
但是两个端口一样,你用非自定义就会有问题了,因为会产生两个相同端口的inbound

@gubiao gubiao closed this as completed Nov 27, 2024
@gubiao
Copy link
Author

gubiao commented Nov 27, 2024

@2dust 虽然那个commit只有一行代码,但是波及面太大了,支持http代理的app现在都走http代理入站了,原来都是socks代理入站,体验了一段时间,感觉没有原来那种tun2socks后都走socks入站丝滑,能否加个开关让用户自行选择?

@gubiao gubiao reopened this Nov 27, 2024
@2dust
Copy link
Owner

2dust commented Nov 27, 2024

行,下一版

2dust added a commit that referenced this issue Nov 28, 2024
@2dust 2dust closed this as completed Nov 28, 2024
@2dust
Copy link
Owner

2dust commented Nov 28, 2024

https://github.com/2dust/v2rayNG/releases/tag/1.9.22

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

2 participants