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({
4444
4545 const serverAddress = url . format ( {
4646 protocol : serveTaskOptions . ssl ? 'https' : 'http' ,
47- hostname : serveTaskOptions . host ,
47+ hostname : serveTaskOptions . host === '0.0.0.0' ? 'localhost' : serveTaskOptions . host ,
4848 port : serveTaskOptions . port . toString ( )
4949 } ) ;
5050 let clientAddress = serverAddress ;
@@ -175,7 +175,8 @@ export default Task.extend({
175175
176176 ui . writeLine ( chalk . green ( oneLine `
177177 **
178- NG Live Development Server is running on ${ serverAddress }
178+ NG Live Development Server is listening on ${ serveTaskOptions . host } :${ serveTaskOptions . port } ,
179+ open your browser on ${ serverAddress }
179180 **
180181 ` ) ) ;
181182
You can’t perform that action at this time.
0 commit comments