From a29f90beda8dd8ce6dae5fe74963e43c7a9a5273 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Mon, 7 Jun 2021 15:48:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BUDP=20IsOk=E7=9A=84=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/nodes/listener_udp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/nodes/listener_udp.go b/internal/nodes/listener_udp.go index 39b62c5..eb2c6e2 100644 --- a/internal/nodes/listener_udp.go +++ b/internal/nodes/listener_udp.go @@ -45,7 +45,7 @@ func (this *UDPListener) Serve() error { this.connLocker.Lock() conn, ok := this.connMap[addr.String()] this.connLocker.Unlock() - if ok && !conn.isOk { + if ok && !conn.IsOk() { _ = conn.Close() ok = false }