mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +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))
|
||||
{
|
||||
return ip.IsLocal();
|
||||
return ip.IsLocal() || ip.IsRFC1918();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user