chore: add client identifier field
This commit is contained in:
parent
ed8d83b561
commit
09acc57689
|
|
@ -507,6 +507,7 @@ func (s *Server) sendConnack(cl *Client, reason packets.Code, present bool) erro
|
||||||
ServerKeepAliveFlag: true,
|
ServerKeepAliveFlag: true,
|
||||||
ReceiveMaximum: s.Options.Capabilities.ReceiveMaximum, // 3.2.2.3.3 Receive Maximum
|
ReceiveMaximum: s.Options.Capabilities.ReceiveMaximum, // 3.2.2.3.3 Receive Maximum
|
||||||
User: []packets.UserProperty{{Key: "subscribe-topic", Val: "oktopus/v1/agent/" + clUser}},
|
User: []packets.UserProperty{{Key: "subscribe-topic", Val: "oktopus/v1/agent/" + clUser}},
|
||||||
|
AssignedClientID: clUser,
|
||||||
}
|
}
|
||||||
|
|
||||||
if reason.Code >= packets.ErrUnspecifiedError.Code {
|
if reason.Code >= packets.ErrUnspecifiedError.Code {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user