We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d08d1e commit 9688eeaCopy full SHA for 9688eea
lib/Server.js
@@ -417,7 +417,7 @@ Server.prototype.checkHost = function(headers) {
417
// also allow public hostname if provided
418
if(typeof this.publicHost === "string") {
419
const idxPublic = this.publicHost.indexOf(":");
420
- const publicHostname = idxPublic >= 0 ? this.publicHost.substr(0, idx) : this.publicHost;
+ const publicHostname = idxPublic >= 0 ? this.publicHost.substr(0, idxPublic) : this.publicHost;
421
if(hostname === publicHostname) return true;
422
}
423
0 commit comments