修复自定义域名不生效的bug

This commit is contained in:
ioxygen 2021-09-01 17:40:22 +08:00
parent 917a1ed96d
commit e2baaf23b6

View File

@ -57,7 +57,7 @@ namespace FastTunnel.Core.Handlers.Server
_logger.LogInformation($"WWW {www}");
server.WebList.AddOrUpdate(www, info, (key, oldInfo) => { return info; });
(proxyConfig as InMemoryConfigProvider).AddWeb(hostName);
(proxyConfig as InMemoryConfigProvider).AddWeb(www);
await client.SendCmdAsync(MessageType.Log, $" HTTP | http://{www} => {item.LocalIp}:{item.LocalPort}", CancellationToken.None);