From 11b04807b9e50f05786747481548bae2607f6204 Mon Sep 17 00:00:00 2001 From: RPRX <63339210+RPRX@users.noreply.github.com> Date: Fri, 16 Aug 2024 02:18:39 +0000 Subject: [PATCH] Log: Add "from" before source address https://github.com/XTLS/Xray-core/pull/3682#issuecomment-2292600144 --- common/log/access.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/log/access.go b/common/log/access.go index 22b84cf6..204212dc 100644 --- a/common/log/access.go +++ b/common/log/access.go @@ -31,6 +31,8 @@ type AccessMessage struct { func (m *AccessMessage) String() string { builder := strings.Builder{} + builder.WriteString("from") + builder.WriteByte(' ') builder.WriteString(serial.ToString(m.From)) builder.WriteByte(' ') builder.WriteString(string(m.Status))