mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 06:21:44 +01:00
Fix error 500 on services page
This commit is contained in:
parent
fa51180dfa
commit
d16a4334cb
2 changed files with 4 additions and 2 deletions
|
@ -268,7 +268,9 @@ namespace BTCPayServer
|
|||
|
||||
public static bool IsOnion(this Uri uri)
|
||||
{
|
||||
return uri?.DnsSafeHost?.EndsWith(".onion", StringComparison.OrdinalIgnoreCase) is true;
|
||||
if (uri == null || !uri.IsAbsoluteUri)
|
||||
return false;
|
||||
return uri.DnsSafeHost.EndsWith(".onion", StringComparison.OrdinalIgnoreCase);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<Project>
|
||||
<PropertyGroup>
|
||||
<Version>1.0.3.160</Version>
|
||||
<Version>1.0.3.161</Version>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
|
|
Loading…
Add table
Reference in a new issue