mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-17 03:24:40 -07:00
@@ -129,8 +129,8 @@ func (s *Server) isClientAuthorized(c *client) bool {
|
||||
opts := s.getOpts()
|
||||
|
||||
// Check custom auth first, then multiple users, then token, then single user/pass.
|
||||
if s.opts.CustomClientAuthentication != nil {
|
||||
return s.opts.CustomClientAuthentication.Check(c)
|
||||
if opts.CustomClientAuthentication != nil {
|
||||
return opts.CustomClientAuthentication.Check(c)
|
||||
} else if s.users != nil {
|
||||
user, ok := s.users[c.opts.Username]
|
||||
if !ok {
|
||||
|
||||
Reference in New Issue
Block a user