SagerNet / sing-box

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

unknown inbound type: hysteria2 #881

Closed Weltolk closed 11 months ago

Weltolk commented 11 months ago

Operating system

Linux

System version

Linux server0 5.10.0-25-arm64 #1 SMP Debian 5.10.191-1 (2023-08-16) aarch64 GNU/Linux

Installation type

Original sing-box Command Line

If you are using a graphical client, please provide the version of the client.

No response

Version

```console sing-box version 1.4.3 Environment: go1.21.1 linux/arm64 Tags: with_gvisor,with_quic,with_dhcp,with_wireguard,with_utls,with_reality_server,with_clash_api Revision: be61ca64d4d00248cdf08a519b88e93881f6d0e3 CGO: disabled ```

Description


{
            "type": "hysteria2",
            "tag": "hysteria2-in",                                                       "listen": "::",                                                              "listen_port": 8080,                                                         "sniff": true,
            "up_mbps": 100,                                                              "down_mbps": 100,
            "users": [
                {
                    "name": "name",
                    "password": "password"
                }
            ],
            "masquerade": "",
            "tls": {
                "enabled": true,
                "server_name": "xxxx.top",
                "alpn": [
                    "h3"                                                                     ],
                "certificate_path": "/etc/letsencrypt/live/xxxx.top/fullchain.pem",
                "key_path": "/etc/letsencrypt/live/xxxx.top/privkey.pem"
            }
        }

Reproduction

just run sing-box

Logs

```console /usr/local/etc/sing-box/config.json: unknown inbound type: hysteria2 ```
Weltolk commented 11 months ago

same in outbound

peytonyip commented 11 months ago

it seems that hysteria2 protocol support is from 1.5.0-beta.2,not 1.4.3