Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hysteria2单端口多用户带obfs 始终第一个用户名.users[0].name连接 #2633

Open
ycycxz opened this issue Feb 24, 2025 · 0 comments

Comments

@ycycxz
Copy link

ycycxz commented Feb 24, 2025

sing-box version 1.12.0-alpha.11

Environment: go1.24.0 linux/arm
Tags: with_gvisor,with_quic,with_dhcp,with_wireguard,with_utls,with_reality_server,with_acme,with_clash_api,with_tailscale
Revision: c3346a14ce7784a4468daf0f3de62b6891019e64
{
  "inbounds": [
    {
      "type": "hysteria2",
      "listen": "0.0.0.0",
      "listen_port": 443,
      "up_mbps": 100,
      "down_mbps": 100,
      "obfs": {
        "type": "salamander",
        "password": "EARBfAM8K0"
      },
      "users": [
        {
          "name": "OC7s70j1",
          "password": "nLS2O97A"
        },
        {
          "name": "VIe6wM2e",
          "password": "64JBc7Nc"
        }
      ],
      "tls": {
        "enabled": true,
        "certificate_path": "fullchain.pem",
        "key_path": "privkey.pem"
      }
    }
  ]
}

INFO[0198] [2833641211 0ms] inbound/hysteria2[0]: inbound connection from x.x.x.x:5545
INFO[0198] [2833641211 0ms] inbound/hysteria2[0]: [OC7s70j1] inbound connection to 1.0.0.1:443
INFO[0198] [2833641211 0ms] outbound/direct: outbound connection to 1.0.0.1:443
INFO[0199] [3399977371 0ms] inbound/hysteria2[0]: inbound connection from x.x.x.x:5545
INFO[0199] [3399977371 0ms] inbound/hysteria2[0]: [OC7s70j1] inbound connection to y.y.y.y:443
INFO[0199] [3399977371 0ms] outbound/direct: outbound connection to y.y.y.y:443
INFO[0199] [3520919411 0ms] inbound/hysteria2[0]: inbound connection from x.x.x.x:5545
INFO[0199] [3520919411 0ms] inbound/hysteria2[0]: [OC7s70j1] inbound connection to z.z.z.z:5228
INFO[0199] [3520919411 0ms] outbound/direct: outbound connection to z.z.z.z:5228
INFO[0199] [2489449167 0ms] inbound/hysteria2[0]: inbound connection from x.x.x.x:5545
INFO[0199] [2489449167 0ms] inbound/hysteria2[0]: [OC7s70j1] inbound connection to www.gstatic.com:443
INFO[0199] [2489449167 0ms] outbound/direct: outbound connection to www.gstatic.com:443

不论客户端用哪个用户名连接,服务器日志总显示 OC7s70j1 用户连接


如果服务器端无obfs,客户端用户名 OC7s70j1VIe6wM2e 都正常连接

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant