diff options
Diffstat (limited to 'danmaku')
-rw-r--r-- | danmaku/client.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/danmaku/client.go b/danmaku/client.go index 3862154..a94afbf 100644 --- a/danmaku/client.go +++ b/danmaku/client.go @@ -88,7 +88,7 @@ func (d *DanmakuClient) Disconnect() error { } func (d *DanmakuClient) Authenticate(roomId types.RoomId, authKey string) error { - pkg := dmpkg.NewAuth(dmpkg.ProtoPlainJson, roomId, authKey) + pkg := dmpkg.NewAuth(dmpkg.ProtoBrotli, roomId, authKey) data, err := pkg.Marshal() if err != nil { return fmt.Errorf("exchange marshal failed: %w", err) |