mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-02-08 07:44:25 +01:00
Fix error 500 on services page
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user