Suppress accept proxyproto failed #65

This commit is contained in:
zakuwaki 2022-09-06 23:16:25 +08:00 committed by 世界
parent 8f8437a88d
commit ef013e0639
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -40,7 +40,11 @@ func (a *myInboundAdapter) loopTCPIn() {
for { for {
conn, err := tcpListener.Accept() conn, err := tcpListener.Accept()
if err != nil { if err != nil {
return if E.IsClosed(err) {
return
}
a.logger.Error("accept: ", err)
continue
} }
go a.injectTCP(conn, adapter.InboundContext{}) go a.injectTCP(conn, adapter.InboundContext{})
} }