From ae5ad505d04fa347eb96a0d2bfb54ff541c3b709 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Mon, 20 Apr 2026 16:05:27 +0200 Subject: add hysteria inbound Co-Authored-By: Alireza Ahmadi --- web/service/xray.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/service/xray.go') diff --git a/web/service/xray.go b/web/service/xray.go index be140ce6..ab440ac2 100644 --- a/web/service/xray.go +++ b/web/service/xray.go @@ -148,10 +148,10 @@ func (s *XrayService) GetXrayConfig() (*xray.Config, error) { // clear client config for additional parameters for key := range c { - if key != "email" && key != "id" && key != "password" && key != "flow" && key != "method" { + if key != "email" && key != "id" && key != "password" && key != "flow" && key != "method" && key != "auth" { delete(c, key) } - if c["flow"] == "xtls-rprx-vision-udp443" { + if flow, ok := c["flow"].(string); ok && flow == "xtls-rprx-vision-udp443" { c["flow"] = "xtls-rprx-vision" } } -- cgit v1.2.3