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 authored and GitHub committed 2025-02-26 20:48:54 +08:00
1 parent c0fee50776
commit 54ca4ca0b6
3 files changed
+73 -82

No files matched your search

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