Skip to content
This repository was archived by the owner on Jul 9, 2023. It is now read-only.

Commit a184d1c

Browse files
committed
#769 Improved logic to handle second level domains
1 parent 088e623 commit a184d1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Titanium.Web.Proxy/Helpers/HttpHelper.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ internal static string GetWildCardDomainName(string hostname)
154154
{
155155
// issue #769
156156
// do not create wildcard if second level domain like: pay.vn.ua
157-
if (split.Length == 3 && split[1].Length <= 3)
157+
if (split[0] != "www" && split[1].Length <=3)
158158
{
159159
return hostname;
160160
}

0 commit comments

Comments
 (0)