mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-05 03:23:50 +08:00
more host addr.
This commit is contained in:
parent
b6a695d43d
commit
b17cee2e6d
@ -188,11 +188,14 @@ func NewClientMd5(uin int64, passwordMd5 [16]byte) *QQClient {
|
|||||||
}
|
}
|
||||||
adds, err := net.LookupIP("msfwifi.3g.qq.com") // host servers
|
adds, err := net.LookupIP("msfwifi.3g.qq.com") // host servers
|
||||||
if err == nil && len(adds) > 0 {
|
if err == nil && len(adds) > 0 {
|
||||||
addr := &net.TCPAddr{
|
var hostAddrs []*net.TCPAddr
|
||||||
IP: adds[0],
|
for _, addr := range adds {
|
||||||
|
hostAddrs = append(hostAddrs, &net.TCPAddr{
|
||||||
|
IP: addr,
|
||||||
Port: 8080,
|
Port: 8080,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
cli.servers = append([]*net.TCPAddr{addr}, cli.servers...)
|
cli.servers = append(hostAddrs, cli.servers...)
|
||||||
}
|
}
|
||||||
rand.Read(cli.RandomKey)
|
rand.Read(cli.RandomKey)
|
||||||
return cli
|
return cli
|
||||||
|
Loading…
x
Reference in New Issue
Block a user