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

Commit

Permalink
Merge branch 'develop' into beta
Browse files Browse the repository at this point in the history
  • Loading branch information
justcoding121 committed Jul 13, 2022
2 parents 178fa97 + 513cf93 commit 2b4f53f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ environment:
github_email:
secure: iBJZGqxyiHVNeYI0uIW+MdGd3I3pg8brJtETNRkKe/A=
nuget_access_token:
secure: OO7/GRKfrScfh1Z92UxFEuBuXUM0WlPv2RMzCL6WnYAMByhiyWC2e1ezy34r/Lc6
secure: JY57cW8JFacDy3vxpqbzcWdurADIal7t3DDeLlRyi2QXcH8lMTdmpizbEjiy1qt3
deploy:
- provider: GitHub
auth_token: $(github_access_token)
Expand Down
11 changes: 10 additions & 1 deletion src/Titanium.Web.Proxy/Helpers/HttpHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,17 @@ internal static string GetWildCardDomainName(string hostname)
return hostname;
}

if (hostname.Split(ProxyConstants.DotSplit).Length > 2)
var split = hostname.Split(ProxyConstants.DotSplit);

if (split.Length > 2)
{
// issue #769
// do not create wildcard if second level domain like: pay.vn.ua
if (split.Length == 3 && split[1].Length <= 3)
{
return hostname;
}

int idx = hostname.IndexOf(ProxyConstants.DotSplit);

// issue #352
Expand Down

0 comments on commit 2b4f53f

Please sign in to comment.