mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 06:24:24 +01:00
Fixing check for external services that don't specify server
This commit is contained in:
@@ -144,7 +144,7 @@ namespace BTCPayServer.Configuration
|
||||
}
|
||||
public bool? IsOnion()
|
||||
{
|
||||
if (!this.Server.IsAbsoluteUri)
|
||||
if (this.Server == null || !this.Server.IsAbsoluteUri)
|
||||
return null;
|
||||
return this.Server.DnsSafeHost.EndsWith(".onion", StringComparison.OrdinalIgnoreCase);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user