From faf6f834415daf1b8edabb8c31117be877ac9c85 Mon Sep 17 00:00:00 2001 From: hatim boufnichel Date: Sat, 15 May 2021 00:00:12 +0200 Subject: [PATCH] use config --- services/gunDB/Mediator/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/gunDB/Mediator/index.js b/services/gunDB/Mediator/index.js index 9f6568a5..10174e58 100644 --- a/services/gunDB/Mediator/index.js +++ b/services/gunDB/Mediator/index.js @@ -443,6 +443,7 @@ const authenticate = async (alias, pass, __user) => { return ack.sea.pub } else { + console.log(ack) logger.error( `Unknown error, wrong password? Ack looks like: ${JSON.stringify(ack)}` ) @@ -455,6 +456,7 @@ const logoff = () => { } const instantiateGun = () => { + const Config = require('../config') if (user) { user.leave() } @@ -469,7 +471,7 @@ const instantiateGun = () => { const _gun = /** @type {unknown} */ (new Gun({ axe: false, multicast: false, - peers: ['https://gun.shock.network:8765/gun'] + peers: Config.PEERS })) gun = /** @type {GUNNode} */ (_gun)