mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 11:42:43 +08:00
fix: gvisor panic
This commit is contained in:
parent
1787c4285a
commit
7421c5f70a
|
@ -67,6 +67,10 @@ func withTCPHandler(handle adapter.TCPHandleFunc) option.Option {
|
|||
defer r.Complete(false)
|
||||
|
||||
err = setSocketOptions(s, ep)
|
||||
if err != nil {
|
||||
r.Complete(true)
|
||||
return
|
||||
}
|
||||
|
||||
conn := &tcpConn{
|
||||
TCPConn: gonet.NewTCPConn(&wq, ep),
|
||||
|
|
Loading…
Reference in New Issue
Block a user