From 2a58b1be2c79f2fe10c0a429878937661645a928 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Sun, 28 Mar 2021 14:00:54 +0300 Subject: - Fix bug with the worker reallocating during the response - Update .golangci and fix new warnings Signed-off-by: Valery Piashchynski --- plugins/http/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/http/handler.go') diff --git a/plugins/http/handler.go b/plugins/http/handler.go index b7c6f1fa..d3c928aa 100644 --- a/plugins/http/handler.go +++ b/plugins/http/handler.go @@ -176,7 +176,7 @@ func (h *Handler) sendEvent(event interface{}) { // get real ip passing multiple proxy func (h *Handler) resolveIP(r *Request) { - if h.trusted.IsTrusted(r.RemoteAddr) == false { + if h.trusted.IsTrusted(r.RemoteAddr) == false { //nolint:gosimple return } -- cgit v1.2.3