Show Bitcoin RPC service

This commit is contained in:
nicolas.dorier
2019-11-07 14:33:10 +09:00
parent 9ff9377bc7
commit 57b87a55bc
9 changed files with 161 additions and 9 deletions

View File

@@ -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)