Skip to content

Commit

Permalink
fix: GetServiceServer() ip format
Browse files Browse the repository at this point in the history
  • Loading branch information
Szzrain committed Apr 20, 2024
1 parent 5c474a3 commit 549f20b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/highway.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (c *QQClient) GetServiceServer() map[uint32][]string {
ip := make([]byte, 4)
binary2.LittleEndian.PutUint32(ip, addr.IP)
service := highwayUri[servicetype]
service = append(service, fmt.Sprintf("http://%x.%x.%x.%x:%d/cgi-bin/httpconn?htcmd=0x6FF0087&uin=%d", ip[0], ip[1], ip[2], ip[3], addr.Port, c.sig.Uin))
service = append(service, fmt.Sprintf("http://%d.%d.%d.%d:%d/cgi-bin/httpconn?htcmd=0x6FF0087&uin=%d", ip[0], ip[1], ip[2], ip[3], addr.Port, c.sig.Uin))
highwayUri[servicetype] = service
}
}
Expand Down

0 comments on commit 549f20b

Please sign in to comment.