File tree 2 files changed +11
-2
lines changed
src/Titanium.Web.Proxy/Helpers 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ environment:
68
68
github_email :
69
69
secure : iBJZGqxyiHVNeYI0uIW+MdGd3I3pg8brJtETNRkKe/A=
70
70
nuget_access_token :
71
- secure : OO7/GRKfrScfh1Z92UxFEuBuXUM0WlPv2RMzCL6WnYAMByhiyWC2e1ezy34r/Lc6
71
+ secure : JY57cW8JFacDy3vxpqbzcWdurADIal7t3DDeLlRyi2QXcH8lMTdmpizbEjiy1qt3
72
72
deploy :
73
73
- provider : GitHub
74
74
auth_token : $(github_access_token)
Original file line number Diff line number Diff line change @@ -148,8 +148,17 @@ internal static string GetWildCardDomainName(string hostname)
148
148
return hostname ;
149
149
}
150
150
151
- if ( hostname . Split ( ProxyConstants . DotSplit ) . Length > 2 )
151
+ var split = hostname . Split ( ProxyConstants . DotSplit ) ;
152
+
153
+ if ( split . Length > 2 )
152
154
{
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
+
153
162
int idx = hostname . IndexOf ( ProxyConstants . DotSplit ) ;
154
163
155
164
// issue #352
You can’t perform that action at this time.
0 commit comments