XTLS Xray - 连接结束 > proxy/vless/inbound:id 无法使用“”。请注意,纯 TLS 代理在 TLS 字符中具有某些 TLS

XTLS Xray - 连接结束 > proxy/vless/inbound:id 无法使用“”。请注意,纯 TLS 代理在 TLS 字符中具有某些 TLS

我正在尝试在 OpenBSD VPS 上设置 XTLS Xray 服务器(版本 1.8.3)。我没有使用任何 CA 颁发的证书,而是使用生成的证书来xray tls cert维护服务器的匿名性。

服务器配置如下:

{
"log": {
    "loglevel": "warning"
},
"dns": {
    "servers": [
        "<dns server address>"
    ]
},
"inbounds": [
    {
        "listen": "0.0.0.0",
        "port": 1234,
        "protocol": "vless",
        "settings": {
            "clients": [
                {
                    "id": "<client id>",
                    "level": 0,
                    "email": "[email protected]",
                    "flow": "xtls-rprx-vision"
                }
            ],
            "decryption": "none"
        },
        "streamSettings": {
            "network": "tcp",
            "security": "tls",
            "tlsSettings": {
                "serverName": "<server ip>",
                "alpn": [
                    "h2",
                    "http/1.1"
                ],
                "certificates": [
                    {
                      "certificate": [
                        <certificate>
                      ],
                      "key": [
                        <key>
                      ]
                    }
                ]
            }
        }
    }
],
"outbounds": [
    {
        "protocol": "freedom",
        "tag": "direct"
    }
]

}

客户端配置如下所示:

{
"log": {
    "loglevel": "warning"
},
"inbounds": [
    {
        "listen": "127.0.0.1",
        "port": "1080",
        "protocol": "socks",
        "settings": {
            "auth": "noauth",
            "udp": true,
            "ip": "127.0.0.1"
        }
    }
],
"outbounds": [
    {
        "protocol": "vless",
        "settings": {
            "vnext": [
                {
                    "address": "<server ip address>,
                    "port": 1234,
                    "users": [
                        {
                            "id": "<client id>",
                            "encryption": "none",
                            "level": 0,
                            "flow": "xtls-rprx-vision"
                        }
                    ]
                }
            ]
        },
        "streamSettings": {
            "network": "tcp",
            "security": "tls",
            "tlsSettings": {
                "serverName": "<server ip address>",
                "allowInsecure": true,
                "fingerprint": "chrome"
            }
        },
        "tag": "proxy"
    }
],
"routing": {
    "domainStrategy": "AsIs"
}

}

它在服务器端显示以下错误:connection ends > proxy/vless/inbound: id is not able to use "". Note that the pure TLS proxy has certain TLS in TLS characters.并且客户端无法访问互联网。

那么,问题出在哪里以及如何解决它?

相关内容