mirror of
https://github.com/FastTunnel/FastTunnel.git
synced 2025-02-08 02:39:29 +08:00
[fix]自定义域名支持
This commit is contained in:
parent
7b9e7ac342
commit
89834c224b
|
@ -18,7 +18,7 @@
|
|||
<RepositoryType>git</RepositoryType>
|
||||
<PackageTags>FastTunnel.Core</PackageTags>
|
||||
<PackageReleaseNotes>FastTunnel.Core</PackageReleaseNotes>
|
||||
<Version>1.0.23</Version>
|
||||
<Version>1.0.24</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -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}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user