feat: only init site map when proxy server is started (#5265)

This commit is contained in:
DacongDA
2026-03-13 00:27:16 +08:00
committed by GitHub
parent 2895c72d32
commit 2693c07b3c

View File

@@ -75,8 +75,10 @@ func main() {
object.InitCleanupTokens()
object.InitSiteMap()
object.InitRuleMap()
object.StartMonitorSitesLoop()
if len(object.SiteMap) != 0 {
object.InitRuleMap()
object.StartMonitorSitesLoop()
}
util.SafeGoroutine(func() { object.RunSyncUsersJob() })
util.SafeGoroutine(func() { controllers.InitCLIDownloader() })