"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 了?
在指定
(x)tlsSettings.alpn为["h2", "http/1.1"]时,上述配置工作正常。测试方法是使用 cURL 通过--http1.1和--http2参数分别进行请求。文档中提到,
(x)tlsSettings.alpn的默认值是["h2", "http/1.1"],所以我尝试将该项删掉。这时,使用 HTTP/2 请求时工作正常,但使用 HTTP/1.1 时,日志中会出现以下错误:cURL 返回
curl: (52) Empty reply from server。感觉就像是没指定 HTTP/1.1 一样。
所以,是我对文档理解有误,还是程序出现 bug 了?