Server/go: authorization client automatically exit if verify succeed

This commit is contained in:
yuanyuanxiang
2025-12-24 23:40:02 +01:00
parent 2ee61a760f
commit 3afcef7779
5 changed files with 222 additions and 6 deletions

View File

@@ -37,8 +37,9 @@ type Context struct {
OutBuffer *buffer.Buffer // Decompressed data for processing
// Client info
Info ClientInfo
IsLoggedIn atomic.Bool
Info ClientInfo
IsLoggedIn atomic.Bool
IsAuthorized atomic.Bool // Whether client is authorized via heartbeat
// Connection state
OnlineTime time.Time