mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-06 05:30:05 +00:00
🐛 quickfix: nil point
This commit is contained in:
@@ -88,8 +88,7 @@ func (s *NezhaHandler) ReportSystemState(c context.Context, r *pb.State) (*pb.Re
|
||||
state := model.PB2State(r)
|
||||
dao.ServerLock.RLock()
|
||||
defer dao.ServerLock.RUnlock()
|
||||
now := time.Now()
|
||||
dao.ServerList[clientID].LastActive = &now
|
||||
dao.ServerList[clientID].LastActive = time.Now()
|
||||
dao.ServerList[clientID].State = &state
|
||||
return &pb.Receipt{Proced: true}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user