Skip to content

Commit 629efe8

Browse files
committed
test: updates
1 parent 54ea712 commit 629efe8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/Server.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,10 @@ class Server {
751751
}
752752

753753
listen(port, hostname, fn) {
754-
if (typeof hostname !== 'undefined' && hostname !== this.options.host) {
754+
if (
755+
typeof this.options.host !== 'undefined' &&
756+
hostname !== this.options.host
757+
) {
755758
throw new Error(
756759
'The host specified in options is different from the host passed as an argument.'
757760
);

0 commit comments

Comments
 (0)