fix: ConfigCache not copied affer server updates (#1008)

* fix: ConfigCache not copied affer server updates

* fix: server list not updated when dispatching tasks

* improve

* reuse logic
This commit is contained in:
UUBulb
2025-02-26 20:48:54 +08:00
committed by GitHub
parent 5fc1c8d83c
commit d457a7c5cd
3 changed files with 73 additions and 82 deletions

View File

@@ -52,6 +52,7 @@ func (s *Server) CopyFromRunningServer(old *Server) {
s.GeoIP = old.GeoIP
s.LastActive = old.LastActive
s.TaskStream = old.TaskStream
s.ConfigCache = old.ConfigCache
s.PrevTransferInSnapshot = old.PrevTransferInSnapshot
s.PrevTransferOutSnapshot = old.PrevTransferOutSnapshot
}