@@ -73,6 +73,7 @@ describe('"open" option', () => {
73
73
const server = new Server ( compiler , {
74
74
open : true ,
75
75
port,
76
+ host : '0.0.0.0' ,
76
77
static : false ,
77
78
} ) ;
78
79
@@ -95,6 +96,7 @@ describe('"open" option', () => {
95
96
const server = new Server ( compiler , {
96
97
open : true ,
97
98
port,
99
+ host : '::' ,
98
100
static : false ,
99
101
} ) ;
100
102
@@ -117,6 +119,7 @@ describe('"open" option', () => {
117
119
const server = new Server ( compiler , {
118
120
open : true ,
119
121
port,
122
+ host : 'localhost' ,
120
123
static : false ,
121
124
} ) ;
122
125
@@ -139,6 +142,7 @@ describe('"open" option', () => {
139
142
const server = new Server ( compiler , {
140
143
open : true ,
141
144
port,
145
+ host : '127.0.0.1' ,
142
146
static : false ,
143
147
} ) ;
144
148
@@ -161,6 +165,7 @@ describe('"open" option', () => {
161
165
const server = new Server ( compiler , {
162
166
open : true ,
163
167
port,
168
+ host : '::1' ,
164
169
static : false ,
165
170
} ) ;
166
171
@@ -183,6 +188,7 @@ describe('"open" option', () => {
183
188
const server = new Server ( compiler , {
184
189
open : true ,
185
190
port,
191
+ host : internalIPv4 ,
186
192
static : false ,
187
193
} ) ;
188
194
@@ -230,6 +236,7 @@ describe('"open" option', () => {
230
236
const server = new Server ( compiler , {
231
237
open : true ,
232
238
port,
239
+ host : 'localhost' ,
233
240
static : false ,
234
241
} ) ;
235
242
@@ -252,6 +259,7 @@ describe('"open" option', () => {
252
259
const server = new Server ( compiler , {
253
260
open : false ,
254
261
port,
262
+ host : 'localhost' ,
255
263
static : false ,
256
264
} ) ;
257
265
@@ -272,6 +280,7 @@ describe('"open" option', () => {
272
280
const server = new Server ( compiler , {
273
281
open : 'index.html' ,
274
282
port,
283
+ host : 'localhost' ,
275
284
static : false ,
276
285
} ) ;
277
286
@@ -294,6 +303,7 @@ describe('"open" option', () => {
294
303
const server = new Server ( compiler , {
295
304
open : '/index.html' ,
296
305
port,
306
+ host : 'localhost' ,
297
307
static : false ,
298
308
} ) ;
299
309
@@ -316,6 +326,7 @@ describe('"open" option', () => {
316
326
const server = new Server ( compiler , {
317
327
open : 'http://localhost:8117/index.html' ,
318
328
port,
329
+ host : 'localhost' ,
319
330
static : false ,
320
331
} ) ;
321
332
@@ -338,6 +349,7 @@ describe('"open" option', () => {
338
349
const server = new Server ( compiler , {
339
350
open : [ 'first.html' , 'second.html' ] ,
340
351
port,
352
+ host : 'localhost' ,
341
353
static : false ,
342
354
} ) ;
343
355
@@ -374,6 +386,7 @@ describe('"open" option', () => {
374
386
'http://localhost:8117/second.html' ,
375
387
] ,
376
388
port,
389
+ host : 'localhost' ,
377
390
static : false ,
378
391
} ) ;
379
392
@@ -407,6 +420,7 @@ describe('"open" option', () => {
407
420
const server = new Server ( compiler , {
408
421
open : { } ,
409
422
port,
423
+ host : 'localhost' ,
410
424
static : false ,
411
425
} ) ;
412
426
@@ -431,6 +445,7 @@ describe('"open" option', () => {
431
445
target : true ,
432
446
} ,
433
447
port,
448
+ host : 'localhost' ,
434
449
static : false ,
435
450
} ) ;
436
451
@@ -455,6 +470,7 @@ describe('"open" option', () => {
455
470
target : 'index.html' ,
456
471
} ,
457
472
port,
473
+ host : 'localhost' ,
458
474
static : false ,
459
475
} ) ;
460
476
@@ -479,6 +495,7 @@ describe('"open" option', () => {
479
495
target : [ 'first.html' , 'second.html' ] ,
480
496
} ,
481
497
port,
498
+ host : 'localhost' ,
482
499
static : false ,
483
500
} ) ;
484
501
@@ -514,6 +531,7 @@ describe('"open" option', () => {
514
531
app : 'google-chrome' ,
515
532
} ,
516
533
port,
534
+ host : 'localhost' ,
517
535
static : false ,
518
536
} ) ;
519
537
@@ -539,6 +557,7 @@ describe('"open" option', () => {
539
557
app : [ 'google-chrome' , '--incognito' ] ,
540
558
} ,
541
559
port,
560
+ host : 'localhost' ,
542
561
static : false ,
543
562
} ) ;
544
563
@@ -565,6 +584,7 @@ describe('"open" option', () => {
565
584
app : 'google-chrome' ,
566
585
} ,
567
586
port,
587
+ host : 'localhost' ,
568
588
static : false ,
569
589
} ) ;
570
590
@@ -591,6 +611,7 @@ describe('"open" option', () => {
591
611
app : [ 'google-chrome' , '--incognito' ] ,
592
612
} ,
593
613
port,
614
+ host : 'localhost' ,
594
615
static : false ,
595
616
} ) ;
596
617
@@ -629,6 +650,7 @@ describe('"open" option', () => {
629
650
app : [ 'google-chrome' , '--incognito' ] ,
630
651
} ,
631
652
port,
653
+ host : 'localhost' ,
632
654
static : false ,
633
655
} ) ;
634
656
@@ -666,6 +688,7 @@ describe('"open" option', () => {
666
688
const server = new Server ( compiler , {
667
689
open : true ,
668
690
port,
691
+ host : 'localhost' ,
669
692
static : false ,
670
693
} ) ;
671
694
const loggerWarnSpy = jest . spyOn ( server . logger , 'warn' ) ;
0 commit comments