From fd37850f8c3433d0b710d59ac3e70fc83e0c0392 Mon Sep 17 00:00:00 2001 From: wdvxdr Date: Sun, 19 Feb 2023 12:27:22 +0800 Subject: [PATCH] client: default use android pad protocol --- client/global.go | 2 +- client/internal/auth/device.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)