mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-09-03 06:35:00 +08:00
fix(home): allow home config to override default port
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user