mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-25 18:11:28 +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 {
|
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{})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue