mirror of
https://github.com/certbot/certbot.git
synced 2026-06-07 07:42:08 -04:00
Add auto-ness to the UA
This commit is contained in:
parent
018a304cd6
commit
64a7608956
1 changed files with 3 additions and 2 deletions
|
|
@ -52,9 +52,10 @@ def determine_user_agent(config):
|
|||
"""
|
||||
|
||||
if config.user_agent is None:
|
||||
ua = "CertbotACMEClient/{0} ({1}) Authenticator/{2} Installer/{3}"
|
||||
auto = "" if cli.cli_command == "certbot" else "auto"
|
||||
ua = "CertbotACMEClient{4}/{0} ({1}) Authenticator/{2} Installer/{3}"
|
||||
ua = ua.format(certbot.__version__, util.get_os_info_ua(),
|
||||
config.authenticator, config.installer)
|
||||
config.authenticator, config.installer, auto)
|
||||
else:
|
||||
ua = config.user_agent
|
||||
return ua
|
||||
|
|
|
|||
Loading…
Reference in a new issue