SagerNet / sing-box

The universal proxy platform
https://sing-box.sagernet.org/
Other
20.47k stars 2.44k forks source link

请求增加 hysteria 服务器端的 "alpn" 参数 #98

Closed chika0801 closed 2 years ago

chika0801 commented 2 years ago

Welcome

Description of the problem

查看了一下文档 https://sing-box.sagernet.org/zh/configuration/inbound/hysteria/

服务器端,是没有 "alpn" 参数的。在客户端用hysteria的程序时,客户端配置 不写 "alpn": "", 这行时,或值不写,就能通。

写了其它值是不通的。

请问能否在 服务器端 增加 "alpn" 参数?

sing-box 服务器端配置

```console { "log": { "disabled": false, "level": "trace", "output": "/root/sing-box.log", "timestamp": true }, "dns": { "servers": [ { "address": "1.1.1.1" } ], "strategy": "ipv4_only" }, "route": { "geoip": { "path": "geoip.db", "download_url": "https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db" }, "rules": [ { "geoip": [ "cn" ], "outbound": "block" } ] }, "inbounds": [ { "type": "hysteria", "tag": "hysteria-in", "listen": "::", "listen_port": 16387, "sniff": true, "sniff_override_destination": true, "domain_strategy": "ipv4_only", "up_mbps": 1000, "down_mbps": 1000, "auth_str": "chika", "recv_window_conn": 67108864, "recv_window_client": 268435456, "max_conn_client": 4096, "disable_mtu_discovery": false, "tls": { "enabled": true, "certificate_path": "/root/fullchain.cer", "key_path": "/root/private.key" } } ], "outbounds": [ { "type": "direct", "tag": "direct" }, { "type": "block", "tag": "block" } ] } ```
chika0801 commented 2 years ago

已解决 要写alpn是在tls参数选项里的