Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

使用v2rayx生成的config无法使v2ray(X)正常工作 #52

@Zieng

Description

@Zieng

环境:
OS:macOS 10.13.2
v2rayx: Version 0.9 (1)

无法使用进行科学上网,而手机通过shadowrocket可以正常使用,所以可以确定服务器配置没有问题。(PS:服务器配置基本就是默认配置)
将v2rayx生成的config文件导出,使用此配置文件运行v2ray,仍然无法科学上网。
经测试,将此config中的某些配置参数删除可以正常连接。

v2rayx生成的config

"outbound" : {
    "sendThrough" : "0.0.0.0",
    "mux" : {
      "enabled" : true,
      "concurrency" : 8
    },
    "protocol" : "vmess",
    "settings" : {
      "vnext" : [
        {
          "address" : "my-sever-ip",
          "port" : my-server-port,
          "users" : [
            {
              "id" : "my-uuid",
              "alterId" : 64,
              "security" : "aes-128-cfb",
              "level" : 1
            }
          ],
          "remark" : "remark"
        }
      ]
    },
    "streamSettings" : {
      "network" : "tcp",
      "tcpSettings" : {
        "header" : {
          "type" : "none"
        },
        "connectionReuse" : true
      },
      "kcpSettings" : {
        "header" : {
          "type" : "none"
        },
        "mtu" : 1350,
        "congestion" : false,
        "tti" : 50,
        "uplinkCapacity" : 5,
        "writeBufferSize" : 1,
        "readBufferSize" : 2,
        "downlinkCapacity" : 20
      },
      "security" : "tls",
      "tlsSettings" : {
        "serverName" : "",
        "allowInsecure" : false
      },
      "wsSettings" : {
        "path" : "",
        "connectionReuse" : true
      }
    }
  }

删除部分参数可正常使用的

"outbound" : {
    "protocol" : "vmess",
    "settings" : {
      "vnext" : [
        {
          "address" : "my-sever-ip",
          "port" : my-server-port,
          "users" : [
            {
              "id" : "my-uuid",
              "alterId" : 64,
              "security" : "aes-128-cfb",
              "level" : 1
            }
          ],
          "remark" : "remark"
        }
      ]
    }
  }

这些多余的参数是由v2rayx的configure窗口中transport setting生成的,问题是这些参数哪怕手动删除之后,仍会自动生成出来。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions