1
0
mirror of https://github.com/Kopano-dev/kopano-ol-extension.git synced 2023-10-10 13:37:40 +02:00

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

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;