1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-20 16:26:23 -05:00

stop recording mux access log

This commit is contained in:
Darien Raymond 2018-04-04 21:32:54 +02:00
parent 75a7e9c7f5
commit 076f385e4b
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -252,12 +252,14 @@ func (h *Handler) Process(ctx context.Context, network net.Network, connection i
return newError("client is using insecure encryption: ", request.Security)
}
log.Record(&log.AccessMessage{
From: connection.RemoteAddr(),
To: request.Destination(),
Status: log.AccessAccepted,
Reason: "",
})
if request.Command != protocol.RequestCommandMux {
log.Record(&log.AccessMessage{
From: connection.RemoteAddr(),
To: request.Destination(),
Status: log.AccessAccepted,
Reason: "",
})
}
newError("received request for ", request.Destination()).WithContext(ctx).WriteToLog()