Files
XTLS_Xray-docs-next/docs/en/config/inbounds/hysteria.md
T
2026-05-25 18:39:42 +08:00

1.3 KiB

Hysteria

::: tip The hysteria protocol itself has no authentication; users only take effect when used with the hysteria transport layer. :::

InboundConfigurationObject

InboundConfigurationObject corresponds to the settings item in InboundObject.

{
  "inbounds": [
    {
      // ...
      "protocol": "hysteria",
      // [!code focus:10]
      "settings": {
        "version": 2,
        "users": [
          {
            "auth": "5783a3e7-e373-51cd-8642-c83782b807c5",
            "level": 0,
            "email": "love@xray.com"
          }
        ]
      }
    }
  ]
}

version: number

Hysteria version, must be 2.

users: [ UserObject ]

An array representing a group of users approved by the server.

UserObject

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

auth: string

A string of any length.

level: number

User level. The connection will use the local policy corresponding to this user level.

The value of level corresponds to the level value in policy. If not specified, the default is 0.

email: string

User email, used to distinguish traffic from different users (reflected in logs and statistics).