Skip to content

Commit

Permalink
Merge PR #685 from 'lukeburns/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
pinheadmz committed Mar 2, 2022
2 parents df997a4 + d3a2a7a commit 3f8ab84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/node/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ class HTTPOptions {
this.cors = false;

this.prefix = null;
this.host = '127.0.0.1';
this.host = 'localhost';
this.port = 8080;
this.ssl = false;
this.keyFile = null;
Expand Down Expand Up @@ -890,7 +890,7 @@ class HTTPOptions {
// Allow no-auth implicitly
// if we're listening locally.
if (!options.apiKey) {
if (this.host === '127.0.0.1' || this.host === '::1')
if (this.host === '127.0.0.1' || this.host === '::1' || this.host === 'localhost')
this.noAuth = true;
}

Expand Down
4 changes: 2 additions & 2 deletions lib/wallet/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -1551,7 +1551,7 @@ class HTTPOptions {
this.walletAuth = false;

this.prefix = null;
this.host = '127.0.0.1';
this.host = 'localhost';
this.port = 8080;
this.ssl = false;
this.keyFile = null;
Expand Down Expand Up @@ -1659,7 +1659,7 @@ class HTTPOptions {
// Allow no-auth implicitly
// if we're listening locally.
if (!options.apiKey) {
if (this.host === '127.0.0.1' || this.host === '::1')
if (this.host === '127.0.0.1' || this.host === '::1' || this.host === 'localhost')
this.noAuth = true;
}

Expand Down

0 comments on commit 3f8ab84

Please sign in to comment.