Include whether http proxy configured as part of UserAgent. (#3009)

This commit is contained in:
Tingluo Huang
2023-11-28 09:43:13 -05:00
committed by GitHub
parent 661b261959
commit 65201ff6be

View File

@@ -200,6 +200,10 @@ namespace GitHub.Runner.Common
{
_trace.Info($"No proxy settings were found based on environmental variables (http_proxy/https_proxy/HTTP_PROXY/HTTPS_PROXY)");
}
else
{
_userAgents.Add(new ProductInfoHeaderValue("HttpProxyConfigured", bool.TrueString));
}
if (StringUtil.ConvertToBoolean(Environment.GetEnvironmentVariable("GITHUB_ACTIONS_RUNNER_TLS_NO_VERIFY")))
{