diff --git a/client/global.go b/client/global.go index 139011cf..5cb62e57 100644 --- a/client/global.go +++ b/client/global.go @@ -59,7 +59,7 @@ func GenRandomDevice() *DeviceInfo { APN: []byte("wifi"), VendorName: []byte("MIUI"), VendorOSName: []byte("mirai"), - Protocol: IPad, + Protocol: AndroidPad, Version: &Version{ Incremental: []byte("5891938"), Release: []byte("10"), diff --git a/client/internal/auth/device.go b/client/internal/auth/device.go index 9dde0f37..8bd06ae8 100644 --- a/client/internal/auth/device.go +++ b/client/internal/auth/device.go @@ -137,7 +137,7 @@ func (info *Device) ReadJson(d []byte) error { case 1, 2, 3, 4, 5, 6: info.Protocol = Protocol(f.Protocol) default: - info.Protocol = IPad + info.Protocol = AndroidPad } v := new(OSVersion)