diff --git a/src/Titanium.Web.Proxy/Helpers/HttpHelper.cs b/src/Titanium.Web.Proxy/Helpers/HttpHelper.cs index d531928b5..97bd870b7 100644 --- a/src/Titanium.Web.Proxy/Helpers/HttpHelper.cs +++ b/src/Titanium.Web.Proxy/Helpers/HttpHelper.cs @@ -150,6 +150,14 @@ internal static string GetWildCardDomainName(string hostname) if (hostname.Split(ProxyConstants.DotSplit).Length > 2) { + // issue #769 + // do not create wildcard if second level domain like: .ac.id, .co.id + string[] prefix = hostname.Split(ProxyConstants.DotSplit); + if (prefix[1].Length <= 3) + { + return hostname; + } + int idx = hostname.IndexOf(ProxyConstants.DotSplit); // issue #352