[client] Add --disable-networks flag to block network selection (#5896)

This commit is contained in:
Viktor Liu
2026-04-16 21:02:31 +09:00
committed by GitHub
parent 08f624507d
commit 6b540d145c
14 changed files with 69 additions and 14 deletions

View File

@@ -61,7 +61,7 @@ func (p *program) Start(svc service.Service) error {
}
}
serverInstance := server.New(p.ctx, util.FindFirstLogPath(logFiles), configPath, profilesDisabled, updateSettingsDisabled)
serverInstance := server.New(p.ctx, util.FindFirstLogPath(logFiles), configPath, profilesDisabled, updateSettingsDisabled, networksDisabled)
if err := serverInstance.Start(); err != nil {
log.Fatalf("failed to start daemon: %v", err)
}