Adjusted mechanism for setting https binding configuration option (#372)

* Adjusted mechanism for setting https binding configuration option.

* Modified the https binding logic to use default bind and port options.

* Removed dedicated https certification config properties and instead used direct access via setting name.
This commit is contained in:
Aaron Clauson
2018-11-01 04:07:28 +01:00
committed by Nicolas Dorier
parent 88044f6b76
commit 24623c59d7
3 changed files with 27 additions and 8 deletions

View File

@@ -37,6 +37,8 @@ namespace BTCPayServer.Configuration
}
else if (typeof(T) == typeof(string))
return (T)(object)str;
else if (typeof(T) == typeof(IPAddress))
return (T)(object)IPAddress.Parse(str);
else if (typeof(T) == typeof(IPEndPoint))
{
var separator = str.LastIndexOf(":", StringComparison.InvariantCulture);