mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-25 22:46:34 +08:00
改进UDP IsOk的使用方法
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user