mirror of
https://github.com/XTLS/Xray-docs-next.git
synced 2026-10-06 05:48:17 +03:00
43 lines
1.2 KiB
Markdown
43 lines
1.2 KiB
Markdown
# Hysteria
|
|
|
|
Client implementation of the Hysteria protocol.
|
|
|
|
This page is very simple because the Hysteria protocol is actually composed of a simple proxy control protocol and a tuned QUIC transport implementation. In Xray, the proxy protocol and transport configuration are separated. For more details (such as `brutal`), please refer to transport configuration items [hysteriaSettings](../transports/hysteria.md) and [FinalMask.quicParams](../transports/finalmask.md#quicparams).
|
|
|
|
::: tip
|
|
The `hysteria protocol` itself has no authentication. When using with a non `hysteria` transport layer, it will be unable to proxy `udp`, and using it with other transport layers is not recommended.
|
|
:::
|
|
|
|
## OutboundConfigurationObject
|
|
|
|
`OutboundConfigurationObject` corresponds to the `settings` item in [`OutboundObject`](../outbound.md).
|
|
|
|
```json
|
|
{
|
|
"outbounds": [
|
|
{
|
|
// ...
|
|
"protocol": "hysteria",
|
|
// [!code focus:5]
|
|
"settings": {
|
|
"version": 2,
|
|
"address": "192.168.108.1",
|
|
"port": 3128
|
|
}
|
|
}
|
|
]
|
|
}
|
|
```
|
|
|
|
> `version`: number
|
|
|
|
Hysteria version, must be 2.
|
|
|
|
> `address`: string
|
|
|
|
Hysteria proxy server address, required.
|
|
|
|
> `port`: int
|
|
|
|
Hysteria proxy server port, required.
|