From 9c25968b6371d0df7e64e2f47012de0cfb7297cd Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Wed, 2 Sep 2020 21:25:38 -0700 Subject: [PATCH] net/tshttpproxy: fix typo in Windows code added at least second I ran tests & vet & staticcheck, but for Linux, not Windows. (#728 would be nice) --- net/tshttpproxy/tshttpproxy_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/tshttpproxy/tshttpproxy_windows.go b/net/tshttpproxy/tshttpproxy_windows.go index 348f00966..3c7701c0b 100644 --- a/net/tshttpproxy/tshttpproxy_windows.go +++ b/net/tshttpproxy/tshttpproxy_windows.go @@ -63,7 +63,7 @@ type result struct { if err == nil { cachedProxy.Lock() defer cachedProxy.Unlock() - if was, now := fmt.Sprint(cachedProxy.val), fmt.Sprint(res.proxy); want != now { + if was, now := fmt.Sprint(cachedProxy.val), fmt.Sprint(res.proxy); was != now { log.Printf("tshttpproxy: winhttp: updating cached proxy setting from %v to %v", was, now) } cachedProxy.val = res.proxy