1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-06 02:23:59 +00:00

Merge pull request #17 from dvarnai/master

Add support for HTTPS_PROXY env variable
This commit is contained in:
Ylian Saint-Hilaire
2019-10-26 11:20:51 -07:00
committed by GitHub

View File

@@ -389,7 +389,7 @@ int MeshAgent_GetSystemProxy(MeshAgentHostContainer *agent, char *buffer, size_t
int i = ILibString_IndexOf(*env, envLen, "=", 1);
if (i > 0)
{
if (i == 11 && strncmp(*env, "https_proxy", 11) == 0)
if (i == 11 && (strncmp(*env, "https_proxy", 11) == 0 || strncmp(*env, "HTTPS_PROXY", 11) == 0))
{
if (ILibString_StartsWith(*env + i + 1, envLen - i - 1, "http://", 7) != 0)
{