net/tshttpproxy: fix typo in Windows code added at least second
I ran tests & vet & staticcheck, but for Linux, not Windows.
would be nice)
@@ -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
