mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-12-02 08:26:47 +00:00
fix: gvisor panic
This commit is contained in:
1 parent
e4fb10faf9
commit
ffb49ba4c5
1 file changed
+4
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user