@@ -75,6 +75,7 @@ describe('"open" option', () => {
75
75
const server = createServer ( compiler , {
76
76
open : true ,
77
77
port,
78
+ host : '0.0.0.0' ,
78
79
static : false ,
79
80
} ) ;
80
81
@@ -97,6 +98,7 @@ describe('"open" option', () => {
97
98
const server = createServer ( compiler , {
98
99
open : true ,
99
100
port,
101
+ host : '::' ,
100
102
static : false ,
101
103
} ) ;
102
104
@@ -119,6 +121,7 @@ describe('"open" option', () => {
119
121
const server = createServer ( compiler , {
120
122
open : true ,
121
123
port,
124
+ host : 'localhost' ,
122
125
static : false ,
123
126
} ) ;
124
127
@@ -141,6 +144,7 @@ describe('"open" option', () => {
141
144
const server = createServer ( compiler , {
142
145
open : true ,
143
146
port,
147
+ host : '127.0.0.1' ,
144
148
static : false ,
145
149
} ) ;
146
150
@@ -163,6 +167,7 @@ describe('"open" option', () => {
163
167
const server = createServer ( compiler , {
164
168
open : true ,
165
169
port,
170
+ host : '::1' ,
166
171
static : false ,
167
172
} ) ;
168
173
@@ -185,6 +190,7 @@ describe('"open" option', () => {
185
190
const server = createServer ( compiler , {
186
191
open : true ,
187
192
port,
193
+ host : internalIPv4 ,
188
194
static : false ,
189
195
} ) ;
190
196
@@ -232,6 +238,7 @@ describe('"open" option', () => {
232
238
const server = createServer ( compiler , {
233
239
open : true ,
234
240
port,
241
+ host : 'localhost' ,
235
242
static : false ,
236
243
} ) ;
237
244
@@ -254,6 +261,7 @@ describe('"open" option', () => {
254
261
const server = createServer ( compiler , {
255
262
open : false ,
256
263
port,
264
+ host : 'localhost' ,
257
265
static : false ,
258
266
} ) ;
259
267
@@ -274,6 +282,7 @@ describe('"open" option', () => {
274
282
const server = createServer ( compiler , {
275
283
open : 'index.html' ,
276
284
port,
285
+ host : 'localhost' ,
277
286
static : false ,
278
287
} ) ;
279
288
@@ -296,6 +305,7 @@ describe('"open" option', () => {
296
305
const server = createServer ( compiler , {
297
306
open : '/index.html' ,
298
307
port,
308
+ host : 'localhost' ,
299
309
static : false ,
300
310
} ) ;
301
311
@@ -318,6 +328,7 @@ describe('"open" option', () => {
318
328
const server = createServer ( compiler , {
319
329
open : 'http://localhost:8117/index.html' ,
320
330
port,
331
+ host : 'localhost' ,
321
332
static : false ,
322
333
} ) ;
323
334
@@ -340,6 +351,7 @@ describe('"open" option', () => {
340
351
const server = createServer ( compiler , {
341
352
open : [ 'first.html' , 'second.html' ] ,
342
353
port,
354
+ host : 'localhost' ,
343
355
static : false ,
344
356
} ) ;
345
357
@@ -376,6 +388,7 @@ describe('"open" option', () => {
376
388
'http://localhost:8117/second.html' ,
377
389
] ,
378
390
port,
391
+ host : 'localhost' ,
379
392
static : false ,
380
393
} ) ;
381
394
@@ -409,6 +422,7 @@ describe('"open" option', () => {
409
422
const server = createServer ( compiler , {
410
423
open : { } ,
411
424
port,
425
+ host : 'localhost' ,
412
426
static : false ,
413
427
} ) ;
414
428
@@ -433,6 +447,7 @@ describe('"open" option', () => {
433
447
target : true ,
434
448
} ,
435
449
port,
450
+ host : 'localhost' ,
436
451
static : false ,
437
452
} ) ;
438
453
@@ -457,6 +472,7 @@ describe('"open" option', () => {
457
472
target : 'index.html' ,
458
473
} ,
459
474
port,
475
+ host : 'localhost' ,
460
476
static : false ,
461
477
} ) ;
462
478
@@ -481,6 +497,7 @@ describe('"open" option', () => {
481
497
target : [ 'first.html' , 'second.html' ] ,
482
498
} ,
483
499
port,
500
+ host : 'localhost' ,
484
501
static : false ,
485
502
} ) ;
486
503
@@ -516,6 +533,7 @@ describe('"open" option', () => {
516
533
app : 'google-chrome' ,
517
534
} ,
518
535
port,
536
+ host : 'localhost' ,
519
537
static : false ,
520
538
} ) ;
521
539
@@ -541,6 +559,7 @@ describe('"open" option', () => {
541
559
app : [ 'google-chrome' , '--incognito' ] ,
542
560
} ,
543
561
port,
562
+ host : 'localhost' ,
544
563
static : false ,
545
564
} ) ;
546
565
@@ -567,6 +586,7 @@ describe('"open" option', () => {
567
586
app : 'google-chrome' ,
568
587
} ,
569
588
port,
589
+ host : 'localhost' ,
570
590
static : false ,
571
591
} ) ;
572
592
@@ -593,6 +613,7 @@ describe('"open" option', () => {
593
613
app : [ 'google-chrome' , '--incognito' ] ,
594
614
} ,
595
615
port,
616
+ host : 'localhost' ,
596
617
static : false ,
597
618
} ) ;
598
619
@@ -631,6 +652,7 @@ describe('"open" option', () => {
631
652
app : [ 'google-chrome' , '--incognito' ] ,
632
653
} ,
633
654
port,
655
+ host : 'localhost' ,
634
656
static : false ,
635
657
} ) ;
636
658
@@ -668,6 +690,7 @@ describe('"open" option', () => {
668
690
const server = createServer ( compiler , {
669
691
open : true ,
670
692
port,
693
+ host : 'localhost' ,
671
694
static : false ,
672
695
} ) ;
673
696
const loggerWarnSpy = jest . spyOn ( server . logger , 'warn' ) ;
0 commit comments