Socks & HTTP inbounds: Add email to access log (#7437)

Fixes https://github.com/XTLS/Xray-core/issues/7436
This commit is contained in:
deadnews
2026-11-19 07:11:16 +00:00
committed by GitHub
parent 5e861653c2
commit b983473390
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -150,6 +150,7 @@ Start:
To: request.URL,
Status: log.AccessAccepted,
Reason: "",
Email: inbound.User.Email,
})
if strings.EqualFold(request.Method, "CONNECT") {
+2
View File
@@ -149,6 +149,7 @@ func (s *Server) processTCP(ctx context.Context, conn stat.Connection, dispatche
To: dest,
Status: log.AccessAccepted,
Reason: "",
Email: inbound.User.Email,
})
}
if inbound.CanSpliceCopy == 2 {
@@ -270,6 +271,7 @@ func (s *Server) handleUDPPayload(ctx context.Context, conn stat.Connection, dis
To: destination,
Status: log.AccessAccepted,
Reason: "",
Email: inbound.User.Email,
})
}