mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +01:00
Fix local network detection (https://github.com/btcpayserver/btcpayserver-docker/pull/152)
This commit is contained in:
parent
ff86ce64b4
commit
a958d10dd9
@ -185,7 +185,7 @@ namespace BTCPayServer
|
||||
}
|
||||
if(IPAddress.TryParse(server, out var ip))
|
||||
{
|
||||
return ip.IsLocal();
|
||||
return ip.IsLocal() || ip.IsRFC1918();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user