mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-01-06 16:53:59 +00:00
Failover.HealthCheck: updated implementation to disable http auto redirect which is causing to fail to verify the health status of the actual server in question.
This commit is contained in:
@@ -133,8 +133,7 @@ namespace Failover
|
||||
httpHandler.PooledConnectionIdleTimeout = TimeSpan.FromMilliseconds(Math.Max(10000, _timeout));
|
||||
httpHandler.Proxy = proxy;
|
||||
httpHandler.UseProxy = proxy is not null;
|
||||
httpHandler.AllowAutoRedirect = true;
|
||||
httpHandler.MaxAutomaticRedirections = 10;
|
||||
httpHandler.AllowAutoRedirect = false;
|
||||
|
||||
_httpHandler = httpHandler;
|
||||
handlerChanged = true;
|
||||
@@ -148,8 +147,7 @@ namespace Failover
|
||||
httpHandler.PooledConnectionIdleTimeout = TimeSpan.FromMilliseconds(Math.Max(10000, _timeout));
|
||||
httpHandler.Proxy = proxy;
|
||||
httpHandler.UseProxy = proxy is not null;
|
||||
httpHandler.AllowAutoRedirect = true;
|
||||
httpHandler.MaxAutomaticRedirections = 10;
|
||||
httpHandler.AllowAutoRedirect = false;
|
||||
|
||||
SocketsHttpHandler oldHttpHandler = _httpHandler;
|
||||
_httpHandler = httpHandler;
|
||||
|
||||
Reference in New Issue
Block a user