summaryrefslogtreecommitdiffhomepage
path: root/tun/wintun
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-03 00:11:59 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-03 00:42:36 +0200
commit2e988467c2c9b7a94369f605bad6b08c70a9df7e (patch)
treed0406814fb8499554917a6df7e7470e940bb9d4a /tun/wintun
parent46dbf5404013e83867356ea8a590a45a569acbf4 (diff)
wintun: work around GetInterface staleness bug
Diffstat (limited to 'tun/wintun')
-rw-r--r--tun/wintun/registryhacks_windows.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tun/wintun/registryhacks_windows.go b/tun/wintun/registryhacks_windows.go
index 94cc2f3..bf72f92 100644
--- a/tun/wintun/registryhacks_windows.go
+++ b/tun/wintun/registryhacks_windows.go
@@ -11,8 +11,8 @@ import (
)
const (
- numRetries = 100
- retryTimeout = 150 * time.Millisecond
+ numRetries = 50
+ retryTimeout = 100 * time.Millisecond
)
func registryOpenKeyRetry(k registry.Key, path string, access uint32) (key registry.Key, err error) {