From 5a61fd84adf83922e2e9d2f04cde84d03233bbbd Mon Sep 17 00:00:00 2001 From: Tank Date: Thu, 16 Apr 2020 20:20:36 +0800 Subject: [PATCH] fix: auth token bug (#1762) --- models/auth/token.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/auth/token.go b/models/auth/token.go index f7be085..4c680d7 100644 --- a/models/auth/token.go +++ b/models/auth/token.go @@ -81,7 +81,7 @@ func (auth *TokenAuthSetterVerifier) SetPing(pingMsg *msg.Ping) error { } func (auth *TokenAuthSetterVerifier) SetNewWorkConn(newWorkConnMsg *msg.NewWorkConn) error { - if !auth.AuthenticateHeartBeats { + if !auth.AuthenticateNewWorkConns { return nil }