mirror of
https://github.com/SagerNet/sing-box.git
synced 2026-05-13 13:57:05 +00:00
Update hysteria2 realm
This commit is contained in:
parent
34c90e6f2e
commit
2e1a7a53ae
11 changed files with 109 additions and 43 deletions
|
|
@ -46,6 +46,7 @@ icon: material/alert-decagram
|
|||
"token": "",
|
||||
"realm_id": "",
|
||||
"stun_servers": [],
|
||||
"stun_domain_resolver": "", // or {}
|
||||
"http_client": {}
|
||||
}
|
||||
}
|
||||
|
|
@ -209,7 +210,15 @@ Outbounds must use the same `realm_id` to find this server.
|
|||
|
||||
List of STUN servers (`host` or `host:port`) used to discover public addresses.
|
||||
|
||||
Port defaults to `3478`.
|
||||
#### realm.stun_domain_resolver
|
||||
|
||||
Set domain resolver to use for resolving STUN server domain names.
|
||||
|
||||
This option uses the same format as the [route DNS rule action](/configuration/dns/rule_action/#route) without the `action` field.
|
||||
|
||||
Setting this option directly to a string is equivalent to setting `server` of this options.
|
||||
|
||||
If empty, the default domain resolver is used.
|
||||
|
||||
#### realm.http_client
|
||||
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@ icon: material/alert-decagram
|
|||
"token": "",
|
||||
"realm_id": "",
|
||||
"stun_servers": [],
|
||||
"stun_domain_resolver": "", // 或 {}
|
||||
"http_client": {}
|
||||
}
|
||||
}
|
||||
|
|
@ -206,7 +207,15 @@ Realm 上的槽位标识符。
|
|||
|
||||
用于发现公网地址的 STUN 服务器列表(`host` 或 `host:port`)。
|
||||
|
||||
端口默认为 `3478`。
|
||||
#### realm.stun_domain_resolver
|
||||
|
||||
用于解析 STUN 服务器域名的域名解析器。
|
||||
|
||||
此选项的格式与 [路由 DNS 规则动作](/zh/configuration/dns/rule_action/#route) 相同,但不包含 `action` 字段。
|
||||
|
||||
若直接将此选项设置为字符串,则等同于设置该选项的 `server` 字段。
|
||||
|
||||
如果为空,则使用默认域名解析器。
|
||||
|
||||
#### realm.http_client
|
||||
|
||||
|
|
|
|||
|
|
@ -191,7 +191,7 @@ The same slot identifier the target Hysteria2 server registered.
|
|||
|
||||
List of STUN servers (`host` or `host:port`) used to discover this client's public addresses.
|
||||
|
||||
Port defaults to `3478`.
|
||||
Domain names are resolved using [`domain_resolver`](/configuration/shared/dial/#domain_resolver) from Dial Fields.
|
||||
|
||||
#### realm.http_client
|
||||
|
||||
|
|
|
|||
|
|
@ -189,7 +189,7 @@ Realm 的 Bearer 令牌,需与 realm 上配置的 `users[].token` 之一匹配
|
|||
|
||||
用于发现本客户端公网地址的 STUN 服务器列表(`host` 或 `host:port`)。
|
||||
|
||||
端口默认为 `3478`。
|
||||
域名通过 [拨号字段](/zh/configuration/shared/dial/) 中的 [`domain_resolver`](/zh/configuration/shared/dial/#domain_resolver) 解析。
|
||||
|
||||
#### realm.http_client
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue