mirror of
https://github.com/ehang-io/nps.git
synced 2025-09-02 03:16:53 +00:00
minor bug fix, docker
This commit is contained in:
@@ -43,9 +43,16 @@ func Accept(l net.Listener, f func(c net.Conn)) {
|
||||
if strings.Contains(err.Error(), "use of closed network connection") {
|
||||
break
|
||||
}
|
||||
if strings.Contains(err.Error(), "the mux has closed") {
|
||||
break
|
||||
}
|
||||
logs.Warn(err)
|
||||
continue
|
||||
}
|
||||
if c == nil {
|
||||
logs.Warn("nil connection")
|
||||
break
|
||||
}
|
||||
go f(c)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user