Skip to content

Commit

Permalink
Include whether http proxy configured as part of UserAgent. (actions#…
Browse files Browse the repository at this point in the history
  • Loading branch information
TingluoHuang authored Nov 28, 2023
1 parent 661b261 commit 65201ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Runner.Common/HostContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ public HostContext(string hostType, string logFile = null)
{
_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")))
{
Expand Down

0 comments on commit 65201ff

Please sign in to comment.