Skip to content

Commit 23a7957

Browse files
committed
Print localhost address of server
1 parent cbc6058 commit 23a7957

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/server.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ function Server (options) {
6363
*/
6464
Server.prototype.start = function start () {
6565
this._server.listen(this._port)
66+
console.info('http://localhost' + (this._port === 80 ? '' : ':' + this._port))
6667
}
6768

6869
/**

0 commit comments

Comments
 (0)