Add README and batch build scripts
This commit is contained in:
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user