From 0fd973a5d2875d3b67df032e3712e7ccaaea83a9 Mon Sep 17 00:00:00 2001 From: W192547975 <138874985+W192547975@users.noreply.github.com> Date: Thu, 10 Aug 2023 14:11:21 +0800 Subject: [PATCH] Update nat.go --- core/nat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/nat.go b/core/nat.go index 55c1480..6a57a26 100644 --- a/core/nat.go +++ b/core/nat.go @@ -123,7 +123,7 @@ func publicIPTest(publicIP string, echoPort int) (hasPublicIP int, hasUPNPorNATP defer echoConn.Close() go func() { // close outside for breaking the ReadFromUDP - // wait 5s(30s?) for echo testing + // wait 30s for echo testing buf := make([]byte, 1600) echoConn.SetReadDeadline(time.Now().Add(time.Second * 30)) n, addr, err := echoConn.ReadFromUDP(buf)