diff options
| author | pwnnex <pwnnex@proton.me> | 2026-04-22 19:02:05 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-22 19:02:05 +0300 |
| commit | 530c1597b87b95b1f22c6c25ab9a6041849b5a42 (patch) | |
| tree | 475c624ceb876648c494efd5672320ece6beac39 /xray/api.go | |
| parent | c8e16d8c417680b6169bbe63d576c79b884961b8 (diff) | |
| parent | 17f67ef3a51537cbb32b2fcd3884c26434f4ee62 (diff) | |
Merge pull request #4086 from pwnnex/fix/hysteria2-protocol-aliases
hysteria: accept "hysteria2" as a protocol string (#4081)
Diffstat (limited to 'xray/api.go')
| -rw-r--r-- | xray/api.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xray/api.go b/xray/api.go index a887d666..277571f4 100644 --- a/xray/api.go +++ b/xray/api.go @@ -231,7 +231,7 @@ func (x *XrayAPI) AddUser(Protocol string, inboundTag string, user map[string]an Email: userEmail, }) } - case "hysteria": + case "hysteria", "hysteria2": auth, err := getRequiredUserString(user, "auth") if err != nil { return err |
