|
|
@ -85,10 +85,6 @@ function checkServerIdentity(host, cert) { |
|
|
|
// Add trailing dot (make hostnames uniform)
|
|
|
|
if (!/\.$/.test(host)) host += '.'; |
|
|
|
|
|
|
|
// Host names with less than one dots are considered too broad,
|
|
|
|
// and should not be allowed
|
|
|
|
if (!/^.+\..+$/.test(host)) return /$./; |
|
|
|
|
|
|
|
// The same applies to hostname with more than one wildcard,
|
|
|
|
// if hostname has wildcard when wildcards are not allowed,
|
|
|
|
// or if there are less than two dots after wildcard (i.e. *.com or *d.com)
|
|
|
|