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

禁用“开启流量探测”功能后,只有 socks 协议成功禁用 sniffing,http 协议无法禁用 sniffing #2134

Closed
Phuker opened this issue Mar 25, 2022 · 1 comment

Comments

@Phuker
Copy link

Phuker commented Mar 25, 2022

在提出问题前请先自行排除服务器端问题和升级到最新客户端,同时也请通过搜索确认是否有人提出过相同问题。

预期行为

关闭“开启流量探测”功能后,2 个 inbounds 配置都变为:

      "sniffing": {
        "enabled": false,

实际行为

关闭“开启流量探测”功能后,config.json 片段:

  "inbounds": [
    {
      "tag": "socks",
      "port": 10808,
      "listen": "127.0.0.1",
      "protocol": "socks",
      "sniffing": {
        "enabled": false,
        "destOverride": [
          "http",
          "tls"
        ]
      },
      "settings": {
        "auth": "noauth",
        "udp": true,
        "allowTransparent": false
      }
    },
    {
      "tag": "http",
      "port": 10809,
      "listen": "127.0.0.1",
      "protocol": "http",
      "sniffing": {
        "enabled": true,
        "destOverride": [
          "http",
          "tls"
        ]
      },
      "settings": {
        "udp": false,
        "allowTransparent": false
      }
    }
  ],

复现方法

把 4.36 版 v2rayN-Core.zip 解压到新目录,随便添加一个服务器,在参数设置中禁用开启流量探测功能,查看生成的 config.json

日志信息,位置在当前目录下的guiLogs

2022-03-25 23:28:05,310 [1] INFO  Log1 - v2rayN start up | v2rayN - V4.36 - 2022-03-08 | D:\1\v2rayN-Core\v2rayN.exe
2022-03-25 23:28:05,965 [4] INFO  Log1 - UpdateTaskRun
2022-03-25 23:29:05,967 [4] INFO  Log1 - UpdateTaskRun

环境信息(客户端请升级至最新正式版)

版本:4.36 版 v2rayN-Core.zip

额外信息(可选)

@2dust
Copy link
Owner

2dust commented Mar 28, 2022

@2dust 2dust closed this as completed Mar 28, 2022
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