fix(home): allow home config to override default port

This commit is contained in:
sususu
2026-08-26 15:17:16 +08:00
parent ba200aefa0
commit 1502ac826d

View File

@@ -307,7 +307,9 @@ func main() {
parsed = &config.Config{}
}
parsed.Home = homeCfg
parsed.Port = 8317 // Default to 8317 for home mode, can be overridden by home config
if parsed.Port == 0 {
parsed.Port = 8317 // Default to 8317 for home mode, can be overridden by home config
}
parsed.UsageStatisticsEnabled = true
pluginSyncCfg := *parsed
parsed.Plugins.StoreAuth = nil