mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 06:24:24 +01:00
Show Bitcoin RPC service
This commit is contained in:
@@ -142,6 +142,12 @@ namespace BTCPayServer.Configuration
|
||||
Macaroons = Macaroons?.Clone()
|
||||
};
|
||||
}
|
||||
public bool? IsOnion()
|
||||
{
|
||||
if (!this.Server.IsAbsoluteUri)
|
||||
return null;
|
||||
return this.Server.DnsSafeHost.EndsWith(".onion", StringComparison.OrdinalIgnoreCase);
|
||||
}
|
||||
public static bool TryParse(string str, out ExternalConnectionString result, out string error)
|
||||
{
|
||||
if (str == null)
|
||||
|
||||
Reference in New Issue
Block a user