mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2025-01-09 18:59:06 +08:00
fix: tuic panic
This commit is contained in:
parent
25540e6c96
commit
5e23e5c490
@ -241,6 +241,9 @@ func (t *Client) DialContext(ctx context.Context, metadata *C.Metadata, dialFn f
|
||||
}
|
||||
return stream, err
|
||||
}()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if t.RequestTimeout > 0 {
|
||||
_ = stream.SetReadDeadline(time.Now().Add(time.Duration(t.RequestTimeout) * time.Millisecond))
|
||||
|
Loading…
x
Reference in New Issue
Block a user