From 27956859f32f50e4af2dbc821107f00a7434a59d 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 d53858c6507b..0c8158053864 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))