From da711837be505e4f39b8bac4b6985e3ad786b6f4 Mon Sep 17 00:00:00 2001 From: fgsfds <4870330+fgsfds@users.noreply.github.com> Date: Sat, 8 Nov 2025 14:07:49 +0500 Subject: [PATCH] remove leading / at the address --- web/service/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/service/server.go b/web/service/server.go index 2526a058..d48a96c3 100644 --- a/web/service/server.go +++ b/web/service/server.go @@ -802,9 +802,9 @@ func (s *ServerService) GetXrayLogs( } if part == "from" { - entry.FromAddress = parts[i+1] + entry.FromAddress = strings.TrimLeft(parts[i+1], "/") } else if part == "accepted" { - entry.ToAddress = parts[i+1] + entry.ToAddress = strings.TrimLeft(parts[i+1], "/") } else if strings.HasPrefix(part, "[") { entry.Inbound = part[1:] } else if strings.HasSuffix(part, "]") {