Skip to content

(x)tlsSettings.alpn 默认值不生效 #242

@BioniCosmos

Description

@BioniCosmos
"fallbacks": [
    {
        "name": "example.com",
        "alpn": "http/1.1",
        "dest": 7000,
        "xver": 1
    },
    {
        "name": "example.com",
        "alpn": "h2",
        "dest": 7001,
        "xver": 1
    }
]

在指定 (x)tlsSettings.alpn["h2", "http/1.1"] 时,上述配置工作正常。测试方法是使用 cURL 通过 --http1.1--http2 参数分别进行请求。

文档中提到,(x)tlsSettings.alpn 的默认值是 ["h2", "http/1.1"],所以我尝试将该项删掉。这时,使用 HTTP/2 请求时工作正常,但使用 HTTP/1.1 时,日志中会出现以下错误:

[Info] [1368524018] proxy/vless/inbound: realAlpn =
[Warning] [1368524018] app/proxyman/inbound: connection ends > proxy/vless/inbound: failed to find the default "alpn" config

cURL 返回 curl: (52) Empty reply from server

感觉就像是没指定 HTTP/1.1 一样。

所以,是我对文档理解有误,还是程序出现 bug 了?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions