Explorar el Código

fix: auth token bug (#1762)

Tank hace 5 años
padre
commit
5a61fd84ad
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      models/auth/token.go

+ 1 - 1
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
 	}