From fd599168cd14588ff335548732a5d4c8e6fecd06 Mon Sep 17 00:00:00 2001 From: tscuite Date: Fri, 24 Mar 2023 19:02:48 +0800 Subject: [PATCH] feat: add url --- xray/engine/engine.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xray/engine/engine.go b/xray/engine/engine.go index 804adb5..31e3665 100644 --- a/xray/engine/engine.go +++ b/xray/engine/engine.go @@ -29,12 +29,11 @@ func (engine *Engine_Xray) EngineXray(agent string, connection []model.Connectio dtmark := connection[i].Request.Header.Get("dt-mark-header") url := connection[i].Request.URL.String() if strings.Contains(url, "?") { - URL_arr := strings.Split(agent, "?") + URL_arr := strings.Split(url, "?") xray.Urls = append(xray.Urls, URL_arr[0]) } else { xray.Urls = append(xray.Urls, url) } - //增加url切割,如果有?只要?前面的 if agent == "" { config.Log.Printf("找不到 Dt-Request-Id 请求头") xray.AgentID = AgentID