diff --git a/cmd/server/main.go b/cmd/server/main.go index 6cb4e42c..3e0b4cf2 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -4,7 +4,6 @@ package main import ( - "context" "flag" "fmt" "os" @@ -14,7 +13,6 @@ import ( "github.com/router-for-me/CLIProxyAPI/v6/internal/cmd" "github.com/router-for-me/CLIProxyAPI/v6/internal/config" "github.com/router-for-me/CLIProxyAPI/v6/internal/logging" - "github.com/router-for-me/CLIProxyAPI/v6/internal/managementasset" _ "github.com/router-for-me/CLIProxyAPI/v6/internal/translator" "github.com/router-for-me/CLIProxyAPI/v6/internal/usage" "github.com/router-for-me/CLIProxyAPI/v6/internal/util" @@ -116,13 +114,6 @@ func main() { } usage.SetStatisticsEnabled(cfg.UsageStatisticsEnabled) - staticDir := managementasset.StaticDir(configFilePath) - if !cfg.RemoteManagement.DisableControlPanel { - go managementasset.EnsureLatestManagementHTML(context.Background(), staticDir) - } else { - log.Debug("management control panel disabled; skip asset sync") - } - if err = logging.ConfigureLogOutput(cfg.LoggingToFile); err != nil { log.Fatalf("failed to configure log output: %v", err) }