fix build break due to aspnet/Configuration #246
This commit is contained in:
parent
ae173cb875
commit
87e1acf034
|
|
@ -102,9 +102,9 @@ namespace Microsoft.AspNet.Server.WebListener
|
|||
private void ParseAddresses(IConfiguration config, Microsoft.Net.Http.Server.WebListener listener)
|
||||
{
|
||||
// TODO: Key format?
|
||||
string urls;
|
||||
if (config != null && config.TryGet("server.urls", out urls) && !string.IsNullOrEmpty(urls))
|
||||
if (config != null && !string.IsNullOrEmpty(config["server.urls"]))
|
||||
{
|
||||
var urls = config["server.urls"];
|
||||
foreach (var value in urls.Split(';'))
|
||||
{
|
||||
listener.UrlPrefixes.Add(UrlPrefix.Create(value));
|
||||
|
|
|
|||
Loading…
Reference in New Issue