mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
@@ -282,7 +282,7 @@ func TestNoAuthUserNoConnectProto(t *testing.T) {
|
||||
accounts {
|
||||
A { users [{user: "foo", password: "pwd"}] }
|
||||
}
|
||||
authorization { timeout: 1s }
|
||||
authorization { timeout: 1 }
|
||||
no_auth_user: "foo"
|
||||
`))
|
||||
defer os.Remove(conf)
|
||||
|
||||
@@ -171,7 +171,11 @@ func (c *client) parse(buf []byte) error {
|
||||
s.mu.Unlock()
|
||||
if exists {
|
||||
c.RegisterUser(user)
|
||||
ok = true
|
||||
c.mu.Lock()
|
||||
c.clearAuthTimer()
|
||||
c.flags.set(connectReceived)
|
||||
c.mu.Unlock()
|
||||
authSet, ok = false, true
|
||||
}
|
||||
}
|
||||
if !ok {
|
||||
|
||||
Reference in New Issue
Block a user