-
Notifications
You must be signed in to change notification settings - Fork 46
server adress log leads to error #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Merging an upstream repository into fork
Fixed error where server could not start since address was not defined propperly. (Maybe windows issue)
Ok. Need to double check it works on Mac/Linux |
// TODO: replace with Morgan call | ||
// tslint:disable-next-line:no-console | ||
console.log(`Listening to http://${this.server.address().address}:${this.server.address().port}`); | ||
|
||
console.log(`Listening to http://localhost:${address.port}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that would be better to print 'localhost' only if the address is undefined.
console.log(`Listening to http://${address.address? address.address:'localhost'}:${address.port}`);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you try to reproduce, plz
// TODO: replace with Morgan call | ||
// tslint:disable-next-line:no-console | ||
console.log(`Listening to http://${this.server.address().address}:${this.server.address().port}`); | ||
|
||
console.log(`Listening to http://localhost:${address.port}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why localhost
?
Can you try to reproduce, plz |
I am not shure if it is a windows issue.
But I had to change the adress log since adress is not defined.
${this.server.address().address}