Hysteria
Xray implementation of the underlying QUIC transport for Hysteria2, typically used with hysteria outbound and hysteria inbound, and is compatible with the official implementation in this case.
HysteriaObject
HysteriaObject corresponds to the hysteriaSettings item in the transport configuration.
{
"version": 2,
"auth": "password",
"udpIdleTimeout": 60,
"masquerade": {
"type": "",
"dir": "",
"url": "",
"rewriteHost": false,
"insecure": false,
"content": "",
"headers": {
"key": "value"
},
"statusCode": 0
}
}2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
version: number
Hysteria version, must be 2.
auth: string
Hysteria authentication password. Must be consistent between the server and the client.
When used with hysteria inbound, it will be overridden by clients (if it exists).
udpIdleTimeout: number
Unit: seconds, default 60.
Idle wait time for a single quic native udp connection. If this time is too long, it may not be strictly adhered to and may be terminated by the policy first.
masquerade: MasqObject
HTTP/3 page masquerading.
MasqObject
{
"type": "",
"dir": "",
"url": "",
"rewriteHost": false,
"insecure": false,
"content": "",
"headers": {
"key": "value"
},
"statusCode": 0
}2
3
4
5
6
7
8
9
10
11
12
13
14
15
type: "file" | "proxy" | "string"
If left blank, the default 404 page will be displayed.
dir: string
Configuration items when type is file.
url: string
Configuration items when type is proxy.
rewriteHost: false | true
Configuration items when type is proxy.
insecure: false | true
Configuration items when type is proxy.
content: string
Configuration items when type is string.
headers: map{ string, string }
Configuration items when type is string.
statusCode: int
Configuration items when type is string.