Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Hysteria2协议的`"server_name": "example.org"`字段,搭建过程中并没有使用域名,应该填写什么?

Closed Beginner friendly
#4,651 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
66/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
go
Domain
documentation

Research direction

Read the Hysteria2 protocol page at https://sing-box.sagernet.org/zh/manual/proxy-protocol/hysteria2/ and check how it explains server_name in the client and server examples. Clarify what value belongs in each field, then update the documentation so readers can identify the expected name from the examples.

Written by the indexing model from the issue text.

Description

官方文档中,Hysteria2协议的客户端和服务端配置示例是这样的:
https://sing-box.sagernet.org/zh/manual/proxy-protocol/hysteria2/
服务端:

 {
  "inbounds": [
    {
      "type": "hysteria2",
      "listen": "::",
      "listen_port": 8080,
      "up_mbps": 100,
      "down_mbps": 100,
      "users": [
        {
          "name": "sekai",
          "password": "<password>"
        }
      ],
      "tls": {
        "enabled": true,
        "server_name": "example.org",
        "key_path": "/path/to/key.pem",
        "certificate_path": "/path/to/certificate.pem"
      }
    }
  ]
}

客户端:

{
  "outbounds": [
    {
      "type": "hysteria2",
      "server": "127.0.0.1",
      "server_port": 8080,
      "up_mbps": 100,
      "down_mbps": 100,
      "password": "<password>",
      "tls": {
        "enabled": true,
        "server_name": "example.org",
        "certificate_path": "/path/to/certificate.pem"
      }
    }
  ]
}

问题:
客户端和服务端示例中都有"server_name": "example.org"字段,搭建过程没有使用域名,这里应该填写什么?

Dominant language
Go
Stars
39.1k
Forks
4.8k
PR merge metrics
No merged PRs in 30d

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SagerNet/sing-box

All issues in SagerNet/sing-box

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.