webpack-dev-server 2.4.4 → 2.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Server.js +1 -1
- package/package.json +1 -1
package/lib/Server.js
CHANGED
|
@@ -417,7 +417,7 @@ Server.prototype.checkHost = function(headers) {
|
|
|
417
417
|
// also allow public hostname if provided
|
|
418
418
|
if(typeof this.publicHost === "string") {
|
|
419
419
|
const idxPublic = this.publicHost.indexOf(":");
|
|
420
|
-
const publicHostname = idxPublic >= 0 ? this.publicHost.substr(0,
|
|
420
|
+
const publicHostname = idxPublic >= 0 ? this.publicHost.substr(0, idxPublic) : this.publicHost;
|
|
421
421
|
if(hostname === publicHostname) return true;
|
|
422
422
|
}
|
|
423
423
|
|