mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-25 10:01:30 +00:00
Suppress accept proxyproto failed #65
This commit is contained in:
parent
8f8437a88d
commit
ef013e0639
|
@ -40,7 +40,11 @@ func (a *myInboundAdapter) loopTCPIn() {
|
|||
for {
|
||||
conn, err := tcpListener.Accept()
|
||||
if err != nil {
|
||||
return
|
||||
if E.IsClosed(err) {
|
||||
return
|
||||
}
|
||||
a.logger.Error("accept: ", err)
|
||||
continue
|
||||
}
|
||||
go a.injectTCP(conn, adapter.InboundContext{})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue