From 076f385e4bdc0a8083a49b2681f39a26d58d95fb Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Wed, 4 Apr 2018 21:32:54 +0200 Subject: [PATCH] stop recording mux access log --- proxy/vmess/inbound/inbound.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/proxy/vmess/inbound/inbound.go b/proxy/vmess/inbound/inbound.go index df9988536..dafe2bb43 100644 --- a/proxy/vmess/inbound/inbound.go +++ b/proxy/vmess/inbound/inbound.go @@ -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()