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

Commit 2b4f53f

Browse files
committed
Merge branch 'develop' into beta
2 parents 178fa97 + 513cf93 commit 2b4f53f

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ environment:
6868
github_email:
6969
secure: iBJZGqxyiHVNeYI0uIW+MdGd3I3pg8brJtETNRkKe/A=
7070
nuget_access_token:
71-
secure: OO7/GRKfrScfh1Z92UxFEuBuXUM0WlPv2RMzCL6WnYAMByhiyWC2e1ezy34r/Lc6
71+
secure: JY57cW8JFacDy3vxpqbzcWdurADIal7t3DDeLlRyi2QXcH8lMTdmpizbEjiy1qt3
7272
deploy:
7373
- provider: GitHub
7474
auth_token: $(github_access_token)

src/Titanium.Web.Proxy/Helpers/HttpHelper.cs

+10-1
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,17 @@ internal static string GetWildCardDomainName(string hostname)
148148
return hostname;
149149
}
150150

151-
if (hostname.Split(ProxyConstants.DotSplit).Length > 2)
151+
var split = hostname.Split(ProxyConstants.DotSplit);
152+
153+
if (split.Length > 2)
152154
{
155+
// issue #769
156+
// do not create wildcard if second level domain like: pay.vn.ua
157+
if (split.Length == 3 && split[1].Length <= 3)
158+
{
159+
return hostname;
160+
}
161+
153162
int idx = hostname.IndexOf(ProxyConstants.DotSplit);
154163

155164
// issue #352

0 commit comments

Comments
 (0)