Added log entry and small cleanup to webapp kdiscover resolving

This commit is contained in:
Patrick Simpson 2017-10-10 09:07:47 +03:00
parent 99a8e1f0bd
commit 57244e8be1
1 changed files with 2 additions and 1 deletions

View File

@ -123,10 +123,11 @@ namespace Acacia.Features.WebApp
// Find kdiscover
string kdiscover = txt.FirstOrDefault((record) => record.StartsWith(TXT_KDISCOVER));
Logger.Instance.Trace(this, "kdiscover: {0} -> {1}", account.Account.DomainName, kdiscover);
if (string.IsNullOrEmpty(kdiscover))
return null;
string url = kdiscover.Substring(TXT_KDISCOVER.Length + 1).Trim();
string url = kdiscover.Substring(TXT_KDISCOVER.Length).Trim();
if (string.IsNullOrWhiteSpace(url))
return null;