1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-10-01 00:06:11 -04:00

fix build break

This commit is contained in:
Darien Raymond 2016-12-01 22:22:20 +01:00
parent b2d6df011f
commit fa0011c4c9
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -1,7 +1,6 @@
package ws
import (
"fmt"
"io/ioutil"
"net"
@ -85,9 +84,7 @@ func wsDial(src v2net.Address, dest v2net.Destination, options internet.DialerOp
}
}
uri := func(dst v2net.Destination, pto string, path string) string {
return fmt.Sprintf("%v://%v/%v", pto, dst.NetAddr(), path)
}(dest, protocol, wsSettings.Path)
uri := protocol + "://" + dest.NetAddr() + "/" + wsSettings.Path
conn, resp, err := dialer.Dial(uri, nil)
if err != nil {