Skip to content

Commit 67772a0

Browse files
committed
token
1 parent 507939d commit 67772a0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

manager/SessionsManager.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,12 @@ func (sess *SessionsManager) connHdl(conn net.Conn) {
184184
log.Println("获取到一个Gateway主动发起的工作连接")
185185
log.Println("GatewayWorkConn:", m.RunId, "@", m.Version)
186186
//TODO 验证Secret
187-
token, err = models.DecodeUnverifiedToken(config.ConfigMode.Security.LoginKey)
188-
if err != nil {
189-
log.Println(err.Error())
190-
conn.Close()
191-
return
192-
}
187+
token, _ = models.DecodeUnverifiedToken(config.ConfigMode.Security.LoginKey)
188+
//if err != nil {
189+
// log.Println(err.Error())
190+
// conn.Close()
191+
// return
192+
//}
193193
if !token.IfContainPermission(models.PermissionGatewayLogin) {
194194
log.Println("token type err ,not n")
195195
conn.Close()

0 commit comments

Comments
 (0)