mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
Fix local network detection (https://github.com/btcpayserver/btcpayserver-docker/pull/152)
This commit is contained in:
@@ -185,7 +185,7 @@ namespace BTCPayServer
|
|||||||
}
|
}
|
||||||
if(IPAddress.TryParse(server, out var ip))
|
if(IPAddress.TryParse(server, out var ip))
|
||||||
{
|
{
|
||||||
return ip.IsLocal();
|
return ip.IsLocal() || ip.IsRFC1918();
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user