1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 11:07:40 +08:00

refactor: delete tag 14 in jce of getSSOAddress (#257)

synchronize with source code
This commit is contained in:
千橘 雫霞 2022-03-12 11:55:31 +08:00 committed by GitHub
parent 764a5a0c77
commit dc9ecd65ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -122,7 +122,7 @@ func getSSOAddress() ([]*net.TCPAddr, error) {
WriteString("00000", 4).WriteInt32(100, 5). WriteString("00000", 4).WriteInt32(100, 5).
WriteInt32(int32(protocol.AppId), 6).WriteString(SystemDeviceInfo.IMEI, 7). WriteInt32(int32(protocol.AppId), 6).WriteString(SystemDeviceInfo.IMEI, 7).
WriteInt64(0, 8).WriteInt64(0, 9).WriteInt64(0, 10). WriteInt64(0, 8).WriteInt64(0, 9).WriteInt64(0, 10).
WriteInt64(0, 11).WriteByte(0, 12).WriteInt64(0, 13).WriteByte(1, 14).Bytes() WriteInt64(0, 11).WriteByte(0, 12).WriteInt64(0, 13).Bytes()
buf := &jce.RequestDataVersion3{ buf := &jce.RequestDataVersion3{
Map: map[string][]byte{"HttpServerListReq": packUniRequestData(payload)}, Map: map[string][]byte{"HttpServerListReq": packUniRequestData(payload)},
} }
@ -140,7 +140,7 @@ func getSSOAddress() ([]*net.TCPAddr, error) {
tea := binary.NewTeaCipher(key) tea := binary.NewTeaCipher(key)
encpkt := tea.Encrypt(b) encpkt := tea.Encrypt(b)
cl() cl()
rsp, err := utils.HttpPostBytes("https://configsvr.msf.3g.qq.com/configsvr/serverlist.jsp", encpkt) rsp, err := utils.HttpPostBytes("https://configsvr.msf.3g.qq.com/configsvr/serverlist.jsp?mType=getssolist", encpkt)
if err != nil { if err != nil {
return nil, errors.Wrap(err, "unable to fetch server list") return nil, errors.Wrap(err, "unable to fetch server list")
} }