File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -332,14 +332,13 @@ exports.run = function (options) {
332
332
} ) ;
333
333
server . listen ( port , function ( ) {
334
334
log ( 'Starting up server, serving at: ' + options . cwd ) ;
335
- log ( 'Available on:' ) ;
336
335
337
336
var networkInterfaces = os . networkInterfaces ( ) ;
338
337
var protocol = options . https ? 'https://' : 'http://' ;
339
338
Object . keys ( networkInterfaces ) . forEach ( function ( dev ) {
340
339
networkInterfaces [ dev ] . forEach ( function ( details ) {
341
- if ( details . family === 'IPv4' ) {
342
- details . address . indexOf ( '127.0.0.1' ) > - 1 ? info ( ' ' + ( protocol + details . address + ':' + port ) . underline ) : info ( ' ' + protocol + details . address + ':' + port ) ;
340
+ if ( details . family === 'IPv4' && details . address . indexOf ( '127.0.0.1' ) > - 1 ) {
341
+ log ( 'Available on: ' + ( protocol + details . address + ':' + port ) . underline ) ;
343
342
}
344
343
} ) ;
345
344
} ) ;
Original file line number Diff line number Diff line change @@ -321,16 +321,13 @@ exports.run = (options) => {
321
321
} )
322
322
server . listen ( port , ( ) => {
323
323
log ( 'Starting up server, serving at: ' + options . cwd )
324
- log ( 'Available on:' )
325
324
326
325
let networkInterfaces = os . networkInterfaces ( ) ;
327
326
let protocol = options . https ? 'https://' : 'http://' ;
328
327
Object . keys ( networkInterfaces ) . forEach ( function ( dev ) {
329
328
networkInterfaces [ dev ] . forEach ( function ( details ) {
330
- if ( details . family === 'IPv4' ) {
331
- details . address . indexOf ( '127.0.0.1' ) > - 1
332
- ? info ( ' ' + ( protocol + details . address + ':' + port ) . underline )
333
- : info ( ( ' ' + protocol + details . address + ':' + port ) )
329
+ if ( details . family === 'IPv4' && details . address . indexOf ( '127.0.0.1' ) > - 1 ) {
330
+ log ( 'Available on: ' + ( protocol + details . address + ':' + port ) . underline )
334
331
}
335
332
} ) ;
336
333
} ) ;
You can’t perform that action at this time.
0 commit comments