mirror of https://github.com/v2ray/v2ray-core
fix crash
parent
5e576e11bb
commit
fed2933043
|
@ -113,8 +113,10 @@ func wsDial(src v2net.Address, dest v2net.Destination) (*wsconn, error) {
|
||||||
|
|
||||||
conn, resp, err := dialer.Dial(uri, nil)
|
conn, resp, err := dialer.Dial(uri, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
reason, reasonerr := ioutil.ReadAll(resp.Body)
|
if resp != nil {
|
||||||
log.Info(string(reason), reasonerr)
|
reason, reasonerr := ioutil.ReadAll(resp.Body)
|
||||||
|
log.Info(string(reason), reasonerr)
|
||||||
|
}
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return func() internet.Connection {
|
return func() internet.Connection {
|
||||||
|
|
Loading…
Reference in New Issue