Configure update registry user agent

This commit is contained in:
Daniel 2020-07-23 09:21:49 +02:00
parent e5bad8f067
commit b6d69ecddd
2 changed files with 18 additions and 2 deletions

View file

@ -63,6 +63,7 @@ func init() {
flags := rootCmd.PersistentFlags()
{
flags.StringVar(&dataDir, "data", "", "Configures the data directory. Alternatively, this can also be set via the environment variable PORTMASTER_DATA.")
flags.StringVar(&registry.UserAgent, "update-agent", "Start", "Sets the user agent for requests to the update server")
flags.IntVar(&maxRetries, "max-retries", 5, "Maximum number of retries when starting a Portmaster component")
flags.BoolVar(&stdinSignals, "input-signals", false, "Emulate signals using stdid.")
_ = rootCmd.MarkPersistentFlagDirname("data")