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)
This commit is contained in:
Brad Fitzpatrick 2020-09-02 21:25:38 -07:00
parent 82a3721661
commit 9c25968b63

View File

@ -63,7 +63,7 @@ type result struct {
if err == nil { if err == nil {
cachedProxy.Lock() cachedProxy.Lock()
defer cachedProxy.Unlock() 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) log.Printf("tshttpproxy: winhttp: updating cached proxy setting from %v to %v", was, now)
} }
cachedProxy.val = res.proxy cachedProxy.val = res.proxy