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 @@ -46,7 +46,7 @@ export default Task.extend({
4646
4747 const serverAddress = url . format ( {
4848 protocol : serveTaskOptions . ssl ? 'https' : 'http' ,
49- hostname : serveTaskOptions . host ,
49+ hostname : serveTaskOptions . host === '0.0.0.0' ? 'localhost' : serveTaskOptions . host ,
5050 port : serveTaskOptions . port . toString ( )
5151 } ) ;
5252 let clientAddress = serverAddress ;
@@ -181,7 +181,8 @@ export default Task.extend({
181181
182182 ui . writeLine ( chalk . green ( oneLine `
183183 **
184- NG Live Development Server is running on ${ serverAddress }
184+ NG Live Development Server is listening on ${ serveTaskOptions . host } :${ serveTaskOptions . port } ,
185+ open your browser on ${ serverAddress }
185186 **
186187 ` ) ) ;
187188
You can’t perform that action at this time.
0 commit comments