This commit is contained in:
AJ ONeal 2018-05-05 20:01:15 +00:00
parent 2ffc76e242
commit 24bbc24d90
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ require('../').create({
// TODO could test for www/no-www both in directory and IP // TODO could test for www/no-www both in directory and IP
var e; var e;
var hostdir = path.join(srv, opts.domains[0]); var hostdir = path.join(srv, opts.domains[0]);
if (!hosnameRe.test(opts.domains[0])) { if (!hostnameRe.test(opts.domains[0])) {
e = new Error("rejecting '" + opts.domains[0] + "' because it is not a valid domain name"); e = new Error("rejecting '" + opts.domains[0] + "' because it is not a valid domain name");
cb(e); cb(e);
return; return;