aboutsummaryrefslogtreecommitdiff
path: root/prototypes/tls-autodetect.go
diff options
context:
space:
mode:
Diffstat (limited to 'prototypes/tls-autodetect.go')
-rw-r--r--prototypes/tls-autodetect.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/prototypes/tls-autodetect.go b/prototypes/tls-autodetect.go
index 3ff4128..4ce665b 100644
--- a/prototypes/tls-autodetect.go
+++ b/prototypes/tls-autodetect.go
@@ -322,7 +322,7 @@ func prepare(client *client) {
// The Cgo resolver doesn't pthread_cancel getnameinfo threads, so not
// bothering with pointless contexts.
- ch := make(chan string)
+ ch := make(chan string, 1)
go func() {
defer close(ch)
if names, err := net.LookupAddr(host); err != nil {