mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-12 09:00:54 +00:00
Allow a null client_id
This commit is contained in:
parent
413f62f56b
commit
e0b5d92671
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ func C2SHello(conn *websocket.Conn, client *ClientInfo, msg ClientMessage) (rmsg
|
|||
if client.ClientID == uuid.Nil {
|
||||
client.ClientID = uuid.NewV4()
|
||||
}
|
||||
} else if _, ok := ary[1].(bool); ok {
|
||||
} else if _, ok := ary[1].(bool); (ok || ary[1] == nil) {
|
||||
// opt out
|
||||
client.ClientID = AnonymousClientID
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue