From 89834c224b50dd85f99225990e884bc339264d3c Mon Sep 17 00:00:00 2001
From: "Gui.H" <740360381@qq.com>
Date: Wed, 19 May 2021 09:14:47 +0800
Subject: [PATCH] =?UTF-8?q?[fix]=E8=87=AA=E5=AE=9A=E4=B9=89=E5=9F=9F?=
=?UTF-8?q?=E5=90=8D=E6=94=AF=E6=8C=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
FastTunnel.Core/FastTunnel.Core.csproj | 2 +-
FastTunnel.Core/Handlers/Server/LoginHandler.cs | 15 +++++----------
2 files changed, 6 insertions(+), 11 deletions(-)
diff --git a/FastTunnel.Core/FastTunnel.Core.csproj b/FastTunnel.Core/FastTunnel.Core.csproj
index 1c458f2..2e06ac4 100644
--- a/FastTunnel.Core/FastTunnel.Core.csproj
+++ b/FastTunnel.Core/FastTunnel.Core.csproj
@@ -18,7 +18,7 @@
git
FastTunnel.Core
FastTunnel.Core
- 1.0.23
+ 1.0.24
diff --git a/FastTunnel.Core/Handlers/Server/LoginHandler.cs b/FastTunnel.Core/Handlers/Server/LoginHandler.cs
index ab9f4b7..30a3708 100644
--- a/FastTunnel.Core/Handlers/Server/LoginHandler.cs
+++ b/FastTunnel.Core/Handlers/Server/LoginHandler.cs
@@ -84,16 +84,11 @@ namespace FastTunnel.Core.Handlers
{
foreach (var www in item.WWW)
{
- if (!www.EndsWith(server.ServerSettings.WebDomain))
- {
- server.WebList.AddOrUpdate(www, info, (key, oldInfo) => { return info; });
- sb.Append($"{Environment.NewLine} http://{www}{(server.ServerSettings.WebHasNginxProxy ? string.Empty : ":" + server.ServerSettings.WebProxyPort)} => {item.LocalIp}:{item.LocalPort}");
- }
- else
- {
- // can`t use WebDomain
- _logger.LogError($"Invalid WebDomain IN WWW {www}");
- }
+ // TODO:validateDomain
+ _logger.LogError($"WWW {www}");
+
+ server.WebList.AddOrUpdate(www, info, (key, oldInfo) => { return info; });
+ sb.Append($"{Environment.NewLine} http://{www}{(server.ServerSettings.WebHasNginxProxy ? string.Empty : ":" + server.ServerSettings.WebProxyPort)} => {item.LocalIp}:{item.LocalPort}");
}
}
}