File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/@angular/cli/tasks Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export default Task.extend({
44
44
45
45
const serverAddress = url . format ( {
46
46
protocol : serveTaskOptions . ssl ? 'https' : 'http' ,
47
- hostname : serveTaskOptions . host ,
47
+ hostname : serveTaskOptions . host === '0.0.0.0' ? 'localhost' : serveTaskOptions . host ,
48
48
port : serveTaskOptions . port . toString ( )
49
49
} ) ;
50
50
let clientAddress = serverAddress ;
@@ -179,7 +179,8 @@ export default Task.extend({
179
179
180
180
ui . writeLine ( chalk . green ( oneLine `
181
181
**
182
- NG Live Development Server is running on ${ serverAddress }
182
+ NG Live Development Server is listening on ${ serveTaskOptions . host } :${ serveTaskOptions . port } ,
183
+ open your browser on ${ serverAddress }
183
184
**
184
185
` ) ) ;
185
186
You can’t perform that action at this time.
0 commit comments