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

client: default use android pad protocol

This commit is contained in:
wdvxdr 2023-02-19 12:27:22 +08:00
parent 1ec3bbf188
commit fd37850f8c
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ func GenRandomDevice() *DeviceInfo {
APN: []byte("wifi"), APN: []byte("wifi"),
VendorName: []byte("MIUI"), VendorName: []byte("MIUI"),
VendorOSName: []byte("mirai"), VendorOSName: []byte("mirai"),
Protocol: IPad, Protocol: AndroidPad,
Version: &Version{ Version: &Version{
Incremental: []byte("5891938"), Incremental: []byte("5891938"),
Release: []byte("10"), Release: []byte("10"),

View File

@ -137,7 +137,7 @@ func (info *Device) ReadJson(d []byte) error {
case 1, 2, 3, 4, 5, 6: case 1, 2, 3, 4, 5, 6:
info.Protocol = Protocol(f.Protocol) info.Protocol = Protocol(f.Protocol)
default: default:
info.Protocol = IPad info.Protocol = AndroidPad
} }
v := new(OSVersion) v := new(OSVersion)