From 9798bf55526b8e57f299266317b44ae2d3d8f7ab Mon Sep 17 00:00:00 2001 From: SudoSpace <79229394+sudospaes@users.noreply.github.com> Date: Sun, 9 Jul 2023 14:34:12 +0330 Subject: [PATCH] revert changes --- web/service/xray.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/web/service/xray.go b/web/service/xray.go index 8a738b04..668d6952 100644 --- a/web/service/xray.go +++ b/web/service/xray.go @@ -106,13 +106,6 @@ func (s *XrayService) GetXrayConfig() (*xray.Config, error) { // clear client config for additional parameters var final_clients []interface{} - - // detect inbound transmission type - var stream map[string]interface{} - json.Unmarshal([]byte(inbound.StreamSettings), &stream) - network, _ := stream["network"].(string) - security, _ := stream["security"].(string) - for _, client := range clients { c := client.(map[string]interface{}) @@ -129,9 +122,6 @@ func (s *XrayService) GetXrayConfig() (*xray.Config, error) { if c["flow"] == "xtls-rprx-vision-udp443" { c["flow"] = "xtls-rprx-vision" } - if network != "tcp" || !(security == "tls" || security == "reality") { - c["flow"] = "" - } } final_clients = append(final_clients, interface{}(c)) }