1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 10:08:15 -05:00

Fix host bug

This commit is contained in:
Shelikhoo 2016-08-15 14:30:38 +08:00
parent 00aeb29e46
commit ee22082fb4
No known key found for this signature in database
GPG Key ID: 7791BDB0709ABD21

View File

@ -108,7 +108,7 @@ func wsDial(src v2net.Address, dest v2net.Destination) (*wsconn, error) {
}(dest) }(dest)
uri := func(dst v2net.Destination, pto string, path string) string { uri := func(dst v2net.Destination, pto string, path string) string {
return fmt.Sprintf("%v://%v:%v/%v", pto, dst.NetAddr(), dst.Port(), path) return fmt.Sprintf("%v://%v/%v", pto, dst.NetAddr(), path)
}(dest, effpto, effectiveConfig.Path) }(dest, effpto, effectiveConfig.Path)
conn, resp, err := dialer.Dial(uri, nil) conn, resp, err := dialer.Dial(uri, nil)