mirror of
https://github.com/netfun2000/rttys_zhaojh329.git
synced 2026-02-27 09:53:24 +08:00
Verify the client token only rttys configured
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
This commit is contained in:
@@ -68,7 +68,7 @@ func (br *broker) run() {
|
||||
log.Error().Msg("Device ID conflicting: " + devid)
|
||||
msg = "ID conflicting"
|
||||
err = 1
|
||||
} else if c.(*device).token != br.cfg.Token {
|
||||
} else if br.cfg.Token != "" && c.(*device).token != br.cfg.Token {
|
||||
log.Error().Msg("Invalid token from terminal device")
|
||||
msg = "Invalid token"
|
||||
err = 1
|
||||
|
||||
Reference in New Issue
Block a user