access log add detour tag

This commit is contained in:
fcying
2019-06-14 14:43:42 +08:00
parent 8cf38342e9
commit 23e5d3cd12
6 changed files with 35 additions and 6 deletions
+1 -1
View File
@@ -250,7 +250,7 @@ func (h *Handler) Process(ctx context.Context, network net.Network, connection i
}
if request.Command != protocol.RequestCommandMux {
log.Record(&log.AccessMessage{
ctx = log.ContextWithAccessMessage(ctx, &log.AccessMessage{
From: connection.RemoteAddr(),
To: request.Destination(),
Status: log.AccessAccepted,