remove leading / at the address

This commit is contained in:
fgsfds 2025-11-08 14:07:49 +05:00
parent 6b44526acb
commit da711837be
No known key found for this signature in database
GPG key ID: 264C1B9113012917

View file

@ -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, "]") {