Log: Add "from" before source address

https://github.com/XTLS/Xray-core/pull/3682#issuecomment-2292600144
This commit is contained in:
RPRX 2024-08-16 02:18:39 +00:00 committed by GitHub
parent b612da26eb
commit 11b04807b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -31,6 +31,8 @@ type AccessMessage struct {
func (m *AccessMessage) String() string { func (m *AccessMessage) String() string {
builder := strings.Builder{} builder := strings.Builder{}
builder.WriteString("from")
builder.WriteByte(' ')
builder.WriteString(serial.ToString(m.From)) builder.WriteString(serial.ToString(m.From))
builder.WriteByte(' ') builder.WriteByte(' ')
builder.WriteString(string(m.Status)) builder.WriteString(string(m.Status))