Commit e4435101 authored by justcoding121's avatar justcoding121

#352 exclude wildcard certificate names when hostname prefix have dashes

parent 53975a28
......@@ -97,6 +97,13 @@ namespace Titanium.Web.Proxy.Helpers
if (hostname.Split(ProxyConstants.DotSplit).Length > 2)
{
int idx = hostname.IndexOf(ProxyConstants.DotSplit);
//issue #352
if(hostname.Substring(0, idx).Contains("-"))
{
return hostname;
}
string rootDomain = hostname.Substring(idx + 1);
return "*." + rootDomain;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment