Skip to content

Commit

Permalink
force IPv4 localhost for node 17+
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyofbyteball committed Dec 6, 2024
1 parent 036d8ac commit b4f1503
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/networks/lib/NetworkFromGenesis.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ class NetworkFromGenesis {
const witness = new ObyteWitness({
rundir: this.rundir,
genesisUnit: genesisUnit,
hub: `localhost:${config.NETWORK_PORT}`,
hub: `127.0.0.1:${config.NETWORK_PORT}`,
id: getIdForPrefix(this.rundir, 'obyte-witness-'),
mnemonic: w.mnemonic,
initialWitnesses: this.initialWitnesses,
Expand Down
2 changes: 1 addition & 1 deletion src/nodes/GenesisNode/GenesisNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const schemaFactory = () => ({
id: Joi.string().required(),
rundir: Joi.string().required(),
passphrase: Joi.string().default('0000'),
hub: Joi.string().default(`localhost:${config.NETWORK_PORT}`),
hub: Joi.string().default(`127.0.0.1:${config.NETWORK_PORT}`),
mnemonic: Joi.string().default(null),
})

Expand Down
2 changes: 1 addition & 1 deletion src/nodes/HeadlessWallet/HeadlessWallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const schemaFactory = () => ({
rundir: Joi.string().required(),
genesisUnit: Joi.string().required(),
passphrase: Joi.string().default('0000'),
hub: Joi.string().default(`localhost:${config.NETWORK_PORT}`),
hub: Joi.string().default(`127.0.0.1:${config.NETWORK_PORT}`),
isSingleAddress: Joi.string().default(config.WALLETS_ARE_SINGLE_ADDRESS),
initialWitnesses: Joi.array().items(Joi.string()).min(1),
mnemonic: Joi.string().default(null),
Expand Down
2 changes: 1 addition & 1 deletion src/nodes/ObyteExplorer/ObyteExplorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const schemaFactory = () => ({
genesisUnit: Joi.string().required(),
webPort: Joi.number().default(8080),
initialWitnesses: Joi.array().items(Joi.string()).min(1),
hub: Joi.string().default(`localhost:${config.NETWORK_PORT}`),
hub: Joi.string().default(`127.0.0.1:${config.NETWORK_PORT}`),
})

class ObyteExplorer extends AbstractNode {
Expand Down
2 changes: 1 addition & 1 deletion src/nodes/ObyteWitness/ObyteWitness.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const schemaFactory = () => ({
rundir: Joi.string().required(),
genesisUnit: Joi.string().required(),
passphrase: Joi.string().default('0000'),
hub: Joi.string().default(`localhost:${config.NETWORK_PORT}`),
hub: Joi.string().default(`127.0.0.1:${config.NETWORK_PORT}`),
mnemonic: Joi.string().default(null),
initialWitnesses: Joi.array().items(Joi.string()).min(1),
})
Expand Down

0 comments on commit b4f1503

Please sign in to comment.