mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-08-13 21:01:46 +00:00
feat(wip): udp rework client side tests & server tests update
This commit is contained in:
@@ -149,6 +149,10 @@ func (c *clientImpl) openStream() (quic.Stream, error) {
|
||||
func (c *clientImpl) DialTCP(addr string) (net.Conn, error) {
|
||||
stream, err := c.openStream()
|
||||
if err != nil {
|
||||
if netErr, ok := err.(net.Error); ok && !netErr.Temporary() {
|
||||
// Connection is dead
|
||||
return nil, coreErrs.ClosedError{}
|
||||
}
|
||||
return nil, err
|
||||
}
|
||||
// Send request
|
||||
|
Reference in New Issue
Block a user