From 22665a3f7ea4049970377166f92f14d36fe40c81 Mon Sep 17 00:00:00 2001 From: Nodari Chkuaselidze Date: Wed, 11 May 2022 15:39:56 +0400 Subject: [PATCH 1/2] hsd: use 127.0.0.1 by default. --- lib/node/http.js | 2 +- lib/wallet/http.js | 2 +- test/auction-rpc-test.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/node/http.js b/lib/node/http.js index 39d89fa84..d20fe8405 100644 --- a/lib/node/http.js +++ b/lib/node/http.js @@ -803,7 +803,7 @@ class HTTPOptions { this.cors = false; this.prefix = null; - this.host = 'localhost'; + this.host = '127.0.0.1'; this.port = 8080; this.ssl = false; this.keyFile = null; diff --git a/lib/wallet/http.js b/lib/wallet/http.js index bc3b89097..5ab5fea65 100644 --- a/lib/wallet/http.js +++ b/lib/wallet/http.js @@ -1551,7 +1551,7 @@ class HTTPOptions { this.walletAuth = false; this.prefix = null; - this.host = 'localhost'; + this.host = '127.0.0.1'; this.port = 8080; this.ssl = false; this.keyFile = null; diff --git a/test/auction-rpc-test.js b/test/auction-rpc-test.js index 7eaf4635f..8e9c117a5 100644 --- a/test/auction-rpc-test.js +++ b/test/auction-rpc-test.js @@ -14,7 +14,7 @@ class TestUtil { options = Object.create(null); if (!options.host) - options.host = 'localhost'; + options.host = '127.0.0.1'; if (!options.nport) options.nport = 14037; From 198b493899cf46775f3fdc6bfe1f05e7c0b2b9c7 Mon Sep 17 00:00:00 2001 From: Nodari Chkuaselidze Date: Sat, 14 May 2022 19:05:50 +0400 Subject: [PATCH 2/2] pkg: update hs-client and bcurl with it. --- package-lock.json | 32 ++++++++++++++++---------------- package.json | 2 +- test/node-rpc-test.js | 2 +- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/package-lock.json b/package-lock.json index 58d7903be..167afa8cc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,7 +33,7 @@ "bval": "~0.1.6", "bweb": "~0.1.10", "goosig": "~0.10.0", - "hs-client": "~0.0.10", + "hs-client": "~0.0.11", "n64": "~0.2.10", "urkel": "~0.7.0" }, @@ -50,7 +50,7 @@ "bmocha": "^2.1.5" }, "engines": { - "node": ">=8.0.0" + "node": ">=12.0.0" } }, "node_modules/bcfg": { @@ -78,9 +78,9 @@ } }, "node_modules/bcurl": { - "version": "0.1.9", - "resolved": "https://registry.npmjs.org/bcurl/-/bcurl-0.1.9.tgz", - "integrity": "sha512-WV9LKCqFPtmGwIOqHexJx3Mm/9H/G5bwSCZxJXq9WRrnVQmd58L+Ltxgp/2QicveDG6AgTfepP6JtNiYWbbeHQ==", + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/bcurl/-/bcurl-0.2.0.tgz", + "integrity": "sha512-uBWc/w3AqjAfo6/+ODoRSoY/w/C7UaU/9AYcXjxgObTyUf3lvV5jCuAU/dSZyWysDyWBQkPzllOd7KZkwJHnwg==", "dependencies": { "brq": "~0.1.8", "bsert": "~0.0.10", @@ -400,12 +400,12 @@ } }, "node_modules/hs-client": { - "version": "0.0.10", - "resolved": "https://registry.npmjs.org/hs-client/-/hs-client-0.0.10.tgz", - "integrity": "sha512-15tfeQEMRS1FZA0q9gFbQ1jYs8v4z9oKw9xFwVEyRuckn72hoVAglN4IrFxkOCDMYV7TWCY/nO/yNZp5njYFBw==", + "version": "0.0.11", + "resolved": "https://registry.npmjs.org/hs-client/-/hs-client-0.0.11.tgz", + "integrity": "sha512-DunENysXNxADDs6YvTjIgFG38U+mGnlDpfEhUzHOAOnkHyYwAIm0PwYJEmJqsbLnpY31xg0lPfRV8t+Ugz+Dew==", "dependencies": { "bcfg": "~0.1.7", - "bcurl": "~0.1.9", + "bcurl": "~0.2.0", "bsert": "~0.0.10" }, "bin": { @@ -493,9 +493,9 @@ } }, "bcurl": { - "version": "0.1.9", - "resolved": "https://registry.npmjs.org/bcurl/-/bcurl-0.1.9.tgz", - "integrity": "sha512-WV9LKCqFPtmGwIOqHexJx3Mm/9H/G5bwSCZxJXq9WRrnVQmd58L+Ltxgp/2QicveDG6AgTfepP6JtNiYWbbeHQ==", + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/bcurl/-/bcurl-0.2.0.tgz", + "integrity": "sha512-uBWc/w3AqjAfo6/+ODoRSoY/w/C7UaU/9AYcXjxgObTyUf3lvV5jCuAU/dSZyWysDyWBQkPzllOd7KZkwJHnwg==", "requires": { "brq": "~0.1.8", "bsert": "~0.0.10", @@ -710,12 +710,12 @@ } }, "hs-client": { - "version": "0.0.10", - "resolved": "https://registry.npmjs.org/hs-client/-/hs-client-0.0.10.tgz", - "integrity": "sha512-15tfeQEMRS1FZA0q9gFbQ1jYs8v4z9oKw9xFwVEyRuckn72hoVAglN4IrFxkOCDMYV7TWCY/nO/yNZp5njYFBw==", + "version": "0.0.11", + "resolved": "https://registry.npmjs.org/hs-client/-/hs-client-0.0.11.tgz", + "integrity": "sha512-DunENysXNxADDs6YvTjIgFG38U+mGnlDpfEhUzHOAOnkHyYwAIm0PwYJEmJqsbLnpY31xg0lPfRV8t+Ugz+Dew==", "requires": { "bcfg": "~0.1.7", - "bcurl": "~0.1.9", + "bcurl": "~0.2.0", "bsert": "~0.0.10" } }, diff --git a/package.json b/package.json index 21f2fcde6..cb1dfac90 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "bval": "~0.1.6", "bweb": "~0.1.10", "goosig": "~0.10.0", - "hs-client": "~0.0.10", + "hs-client": "~0.0.11", "n64": "~0.2.10", "urkel": "~0.7.0" }, diff --git a/test/node-rpc-test.js b/test/node-rpc-test.js index 9b3e92e57..9f6fbd69f 100644 --- a/test/node-rpc-test.js +++ b/test/node-rpc-test.js @@ -37,7 +37,7 @@ const clientOptions = { }; const errs = { - MISC_ERROR: -1 >>> 0 + MISC_ERROR: -1 }; describe('RPC', function() {