|
|
@@ -22,12 +22,12 @@ func Dail(host *conn.HostInfo, cf *config.Config) (conn conn.Connect, err error)
|
|
|
addr := net.JoinHostPort(host.Host, strconv.Itoa(int(host.Port)))
|
|
|
if host.Version == ws2.VERSION && (host.Proto == ws2.PROTO || host.Proto == ws2.PROTO_STL) {
|
|
|
if cf.PrintMsg {
|
|
|
- log.Println("[Dail]:", host.Proto, addr, host.Path, host.Hash)
|
|
|
+ log.Println("[Dail]:", host.Url())
|
|
|
}
|
|
|
conn, err = ws2.Dial(cf, host.Proto, addr, host.Path, host.Hash)
|
|
|
} else if host.Version == tcp2.VERSION && host.Proto == tcp2.PROTO {
|
|
|
if cf.PrintMsg {
|
|
|
- log.Println("[Dail]:", host.Proto, addr, host.Hash)
|
|
|
+ log.Println("[Dail]:", host.Url())
|
|
|
}
|
|
|
conn, err = tcp2.Dial(cf, addr, host.Hash)
|
|
|
} else {
|