Can configure an internallightningnode to make things easier

This commit is contained in:
nicolas.dorier
2018-02-26 18:58:02 +09:00
parent f289420364
commit 309d6fdfe0
10 changed files with 81 additions and 27 deletions

View File

@@ -27,7 +27,14 @@ namespace BTCPayServer.Configuration
throw new FormatException();
}
else if (typeof(T) == typeof(Uri))
return (T)(object)new Uri(str, UriKind.Absolute);
if (string.IsNullOrEmpty(str))
{
return defaultValue;
}
else
{
return (T)(object)new Uri(str, UriKind.Absolute);
}
else if (typeof(T) == typeof(string))
return (T)(object)str;
else if (typeof(T) == typeof(IPEndPoint))