mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-12-01 08:26:50 +00:00
fix: panic on trojan dial error
This commit is contained in:
1 parent
7fd98605b6
commit
2d34ecffe8
1 file changed
+3
@@ -135,6 +135,9 @@ func (t *Trojan) StreamConnContext(ctx context.Context, c net.Conn, metadata *C.
|
||||
Reality: t.realityConfig,
|
||||
})
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return t.streamConnContext(ctx, c, metadata)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user