We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 952a85c commit f940365Copy full SHA for f940365
1 file changed
lib/server.js
@@ -109,11 +109,16 @@ const start = async function start() {
109
110
address.hostname = address.address;
111
112
+ // fix #131 - server address reported as 127.0.0.1 for localhost
113
+ if (address.hostname !== this.options.host && this.options.host === 'localhost') {
114
+ address.hostname = this.options.host;
115
+ }
116
+
117
// we set this so the client can use the actual hostname of the server. sometimes the net
118
// will mutate the actual hostname value (e.g. :: -> [::])
119
this.options.address = url.format(address);
120
- const uri = `${protocol}://${url.format(this.options.address)}`;
121
+ const uri = `${protocol}://${this.options.address}`;
122
123
this.log.info('Server Listening on:', uri);
124
0 commit comments