Commit 035c094 1 parent 232358a commit 035c094 Copy full SHA for 035c094
File tree 1 file changed +3
-2
lines changed
packages/@angular/cli/tasks
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 ;
@@ -175,7 +175,8 @@ export default Task.extend({
175
175
176
176
ui . writeLine ( chalk . green ( oneLine `
177
177
**
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 }
179
180
**
180
181
` ) ) ;
181
182
You can’t perform that action at this time.
0 commit comments