mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-06 08:00:10 +08:00
packetID
This commit is contained in:
parent
fa8df3870c
commit
5cb0ebfe47
@ -1,7 +1,8 @@
|
||||
package net.mamoe.mirai.network.packet.client
|
||||
package net.mamoe.mirai.network.packet.client.login
|
||||
|
||||
import net.mamoe.mirai.network.Protocol
|
||||
import net.mamoe.mirai.network.packet.PacketId
|
||||
import net.mamoe.mirai.network.packet.client.*
|
||||
import net.mamoe.mirai.util.TEACryptor
|
||||
import net.mamoe.mirai.util.getCrc32
|
||||
import net.mamoe.mirai.util.getRandomKey
|
||||
|
@ -35,7 +35,7 @@ class ServerTouchResponsePacket(private val type: Type, inputStream: DataInputSt
|
||||
|
||||
when (data.readByte().toInt()) {
|
||||
0xFE -> {
|
||||
println("0xfe")
|
||||
data.skip(94)
|
||||
serverIP = data.readIP()
|
||||
}
|
||||
0X00 -> {
|
||||
|
@ -1,10 +1,3 @@
|
||||
import net.mamoe.mirai.network.packet.client.ClientPasswordSubmissionPacket
|
||||
import net.mamoe.mirai.network.packet.client.toHexString
|
||||
import net.mamoe.mirai.network.packet.server.ServerTouchResponsePacket
|
||||
import net.mamoe.mirai.util.hexToBytes
|
||||
import net.mamoe.mirai.util.toHexString
|
||||
import java.io.DataInputStream
|
||||
|
||||
@ExperimentalUnsignedTypes
|
||||
fun main(){
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user