summaryrefslogtreecommitdiffhomepage
path: root/conn/conn_default.go
diff options
context:
space:
mode:
Diffstat (limited to 'conn/conn_default.go')
-rw-r--r--conn/conn_default.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/conn/conn_default.go b/conn/conn_default.go
index 2360068..82a1e42 100644
--- a/conn/conn_default.go
+++ b/conn/conn_default.go
@@ -99,6 +99,7 @@ again:
bind.ipv6, port, err = listenNet("udp6", port)
if uport == 0 && err != nil && errors.Is(err, syscall.EADDRINUSE) && tries < 100 {
+ bind.ipv4.Close()
tries++
goto again
}