Makes string search for Windows case-insensitive.

Fixes #2356.
This commit is contained in:
James Phillips 2016-09-23 17:43:40 -07:00
parent 1d063b750b
commit 36db92932a
No known key found for this signature in database
GPG Key ID: 77183E682AC5FC11
1 changed files with 1 additions and 1 deletions

View File

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