mirror of
https://github.com/FastTunnel/FastTunnel.git
synced 2025-02-08 02:39:29 +08:00
修正一个bug
This commit is contained in:
parent
87e4fe79f5
commit
02780363c8
|
@ -8,7 +8,7 @@ namespace FastTunnel.Core.Logger
|
|||
{
|
||||
public void Debug(string msg)
|
||||
{
|
||||
Console.WriteLine(string.Format("Debug - {0}", msg));
|
||||
Console.WriteLine(string.Format("Debu - {0}", msg));
|
||||
}
|
||||
|
||||
public void Error(string msg)
|
||||
|
|
|
@ -104,9 +104,9 @@ namespace FastTunnel.Core.Server
|
|||
_logger.Debug($"Host: {domain}");
|
||||
|
||||
WebInfo web;
|
||||
if (WebList.TryGetValue(domain, out web))
|
||||
if (!WebList.TryGetValue(domain, out web))
|
||||
{
|
||||
_logger.Error($"客户端不存在:{domain}");
|
||||
_logger.Error($"客户端不存在:'{domain}'");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -162,17 +162,17 @@ namespace FastTunnel.Core.Server
|
|||
{
|
||||
foreach (var item in requet.WebList)
|
||||
{
|
||||
var key = $"{item.SubDomain }.{serverSettings.Domain}";
|
||||
var key = $"{item.SubDomain}.{serverSettings.Domain}".Trim();
|
||||
if (WebList.ContainsKey(key))
|
||||
{
|
||||
_logger.Debug($"renew domain {key}");
|
||||
_logger.Debug($"renew domain '{key}'");
|
||||
|
||||
WebList.Remove(key);
|
||||
WebList.Add(key, new WebInfo { Socket = client, WebConfig = item });
|
||||
}
|
||||
else
|
||||
{
|
||||
_logger.Debug($"new domain {key}");
|
||||
_logger.Debug($"new domain '{key}'");
|
||||
WebList.Add(key, new WebInfo { Socket = client, WebConfig = item });
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user