From 57244e8be153eec4515f666ec0c883959043a66f Mon Sep 17 00:00:00 2001
From: Patrick Simpson
Date: Tue, 10 Oct 2017 09:07:47 +0300
Subject: [PATCH] Added log entry and small cleanup to webapp kdiscover
resolving
---
.../AcaciaZPushPlugin/Features/WebApp/FeatureWebApp.cs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/AcaciaZPushPlugin/AcaciaZPushPlugin/Features/WebApp/FeatureWebApp.cs b/src/AcaciaZPushPlugin/AcaciaZPushPlugin/Features/WebApp/FeatureWebApp.cs
index 4ec7dc8..c3b0b9b 100644
--- a/src/AcaciaZPushPlugin/AcaciaZPushPlugin/Features/WebApp/FeatureWebApp.cs
+++ b/src/AcaciaZPushPlugin/AcaciaZPushPlugin/Features/WebApp/FeatureWebApp.cs
@@ -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;