mirror of
https://github.com/Jackett/Jackett.git
synced 2025-12-22 14:16:59 +01:00
core: Make local address listened to configurable (#14554)
This commit is contained in:
@@ -61,7 +61,7 @@ namespace Jackett.Common.Utils.Clients
|
||||
{
|
||||
// in case of error in DNS resolution, we use a fake proxy to avoid leaking the user IP (disabling proxy)
|
||||
// https://github.com/Jackett/Jackett/issues/8826
|
||||
var addresses = new[] { new IPAddress(2130706433) }; // 127.0.0.1
|
||||
var addresses = new[] { IPAddress.Parse(serverConfig.LocalBindAddress) };
|
||||
try
|
||||
{
|
||||
addresses = Dns.GetHostAddressesAsync(serverConfig.ProxyUrl).Result;
|
||||
|
||||
Reference in New Issue
Block a user