Add README and batch build scripts

This commit is contained in:
2026-04-09 20:36:16 +03:00
parent a9a6c304e7
commit bdfb37304a
4 changed files with 6 additions and 5 deletions

View File

@@ -360,10 +360,11 @@ class Program
static string BuildUpstreamProxyAuthHeader()
{
if (string.IsNullOrWhiteSpace(UPSTREAM_USER) || string.IsNullOrWhiteSpace(UPSTREAM_PASS))
if (string.IsNullOrWhiteSpace(UPSTREAM_USER))
return string.Empty;
string encoded = Convert.ToBase64String(Encoding.ASCII.GetBytes($"{UPSTREAM_USER}:{UPSTREAM_PASS}"));
string pass = UPSTREAM_PASS ?? string.Empty;
string encoded = Convert.ToBase64String(Encoding.ASCII.GetBytes($"{UPSTREAM_USER}:{pass}"));
return $"Proxy-Authorization: Basic {encoded}\r\n";
}
}