mirror of https://github.com/v2ray/v2ray-core
stop recording mux access log
parent
75a7e9c7f5
commit
076f385e4b
|
@ -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)
|
return newError("client is using insecure encryption: ", request.Security)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if request.Command != protocol.RequestCommandMux {
|
||||||
log.Record(&log.AccessMessage{
|
log.Record(&log.AccessMessage{
|
||||||
From: connection.RemoteAddr(),
|
From: connection.RemoteAddr(),
|
||||||
To: request.Destination(),
|
To: request.Destination(),
|
||||||
Status: log.AccessAccepted,
|
Status: log.AccessAccepted,
|
||||||
Reason: "",
|
Reason: "",
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
|
||||||
newError("received request for ", request.Destination()).WithContext(ctx).WriteToLog()
|
newError("received request for ", request.Destination()).WithContext(ctx).WriteToLog()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue