From 36db92932a2c71f09e11fb9d2ab799f5d90737bc Mon Sep 17 00:00:00 2001 From: James Phillips Date: Fri, 23 Sep 2016 17:43:40 -0700 Subject: [PATCH] Makes string search for Windows case-insensitive. Fixes #2356. --- command/agent/rpc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/agent/rpc.go b/command/agent/rpc.go index 9232be575..e1dfecb21 100644 --- a/command/agent/rpc.go +++ b/command/agent/rpc.go @@ -323,7 +323,7 @@ func (i *AgentRPC) handleClient(client *rpcClient) { // The second part of this if is to block socket // errors from Windows which appear to happen every // time there is an EOF. - if err != io.EOF && !strings.Contains(err.Error(), "WSARecv") { + if err != io.EOF && !strings.Contains(strings.ToLower(err.Error()), "wsarecv") { i.logger.Printf("[ERR] agent.rpc: failed to decode request header: %v", err) } }