stop recording mux access log

pull/1019/head
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
1 changed files with 8 additions and 6 deletions

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)
}
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()