Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .vitepress/menus/sidebar.en.mts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export const sidebar: DefaultTheme.Config["sidebar"] = {
},
{ text: "VMess", link: "/en/config/inbounds/vmess.md" },
{ text: "Wireguard", link: "/en/config/inbounds/wireguard.md" },
{ text: "Hysteria", link: "/en/config/inbounds/hysteria.md" },
{ text: "TUN", link: "/en/config/inbounds/tun.md" }
]
},
Expand Down
1 change: 1 addition & 0 deletions .vitepress/menus/sidebar.mts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export const sidebar: DefaultTheme.Config["sidebar"] = {
},
{ text: "VMess", link: "/config/inbounds/vmess.md" },
{ text: "Wireguard", link: "/config/inbounds/wireguard.md" },
{ text: "Hysteria", link: "/config/inbounds/hysteria.md" },
{ text: "TUN", link: "/config/inbounds/tun.md" }
]
},
Expand Down
3 changes: 2 additions & 1 deletion .vitepress/menus/sidebar.ru.mts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export const sidebar: DefaultTheme.Config["sidebar"] = {
},
{ text: "VMess", link: "/ru/config/inbounds/vmess.md" },
{ text: "Wireguard", link: "/ru/config/inbounds/wireguard.md" },
{ text: "Hysteria", link: "/ru/config/inbounds/hysteria.md" },
{ text: "TUN", link: "/ru/config/inbounds/tun.md" }
]
},
Expand Down Expand Up @@ -115,7 +116,7 @@ export const sidebar: DefaultTheme.Config["sidebar"] = {
link: "/ru/config/outbounds/wireguard.md"
},
{
text: "Hysteria 2",
text: "Hysteria",
link: "/ru/config/outbounds/hysteria.md"
}
]
Expand Down
2 changes: 1 addition & 1 deletion docs/config/inbound.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

注意,监听一个端口是相当昂贵的操作,监听端口范围太大可能造成占用显著提高甚至导致 Xray 无法正常工作,一般来说监听数量接近四位数时可能就会开始出现问题,要使用一个很大的范围请考虑使用 iptables 进行重定向而不是在这里设置。

> `protocol`: "dokodemo-door" | "http" | "shadowsocks" | "socks" | "vless" | "vmess" | "trojan" | "wireguard"
> `protocol`: "dokodemo-door" | "http" | "shadowsocks" | "socks" | "vless" | "vmess" | "trojan" | "wireguard" | "hysteria"
连接协议名称,可选的协议列表见左侧 [入站协议](./inbounds/)

Expand Down
52 changes: 52 additions & 0 deletions docs/config/inbounds/hysteria.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Hysteria

::: tip
`hysteria protocol` 本身无认证,`clients` 仅在搭配 `hysteria` 传输层时生效
:::

## InboundConfigurationObject

```json
{
"version": 2,
"clients": [
{
"auth": "5783a3e7-e373-51cd-8642-c83782b807c5",
"level": 0,
"email": "love@xray.com"
}
]
}
```

> `version`: number

Hysteria 版本,必须为 2。

> `clients`: \[ [ClientObject](#clientobject) \]

一个数组,代表一组服务端认可的用户。

### ClientObject

```json
{
"auth": "5783a3e7-e373-51cd-8642-c83782b807c5",
"level": 0,
"email": "love@xray.com"
}
```

> `auth`: string

任意长度字符串。

> `level`: number

用户等级,连接会使用这个用户等级对应的 [本地策略](../policy.md#levelpolicyobject)。

level 的值, 对应 [policy](../policy.md#policyobject) 中 `level` 的值。 如不指定, 默认为 0。

> `email`: string

用户邮箱,用于区分不同用户的流量(会体现在日志、统计中)。
1 change: 1 addition & 0 deletions docs/config/inbounds/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ Xray 支持以下入站协议:
- [VLESS (XTLS Vision Seed)](vless.md)
- [VMess](vmess.md)
- [WireGuard](wireguard.md)
- [Hysteria](hysteria.md)
- [TUN](tun.md)
6 changes: 5 additions & 1 deletion docs/config/outbounds/hysteria.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

Hysteria 协议的客户端实现。

这个页面非常简单,因为 hysteria 协议实际上分为一个简单的代理控制协议和经过调优的 QUIC 底层传输,在 Xray 中代理协议和底层传输被拆分,更多内容(如 brutal)详见底层传输的 [hysteriaSettings](../transports/hysteria.md)
这个页面非常简单,因为 hysteria 协议实际上分为一个简单的代理控制协议和经过调优的 QUIC 底层传输,在 Xray 中代理协议和底层传输被拆分,更多内容(如 brutal)详见底层传输的 [hysteriaSettings](../transports/hysteria.md) [finalmask.quicParams](../transport.md#quicParams)

::: tip
`hysteria protocol` 本身无认证,搭配非 `hysteria` 传输层将无法代理 `udp`,也不推荐搭配其他传输层
:::

## OutboundConfigurationObject

Expand Down
Loading