mirror of
https://github.com/safing/portmaster
synced 2025-09-14 16:59:40 +00:00
Configure update registry user agent
This commit is contained in:
parent
e5bad8f067
commit
b6d69ecddd
2 changed files with 18 additions and 2 deletions
|
@ -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(®istry.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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue