From ee70d8c8657a1c1489bf96811b5c0c80299ac412 Mon Sep 17 00:00:00 2001 From: Evert Date: Wed, 21 Dec 2016 21:00:43 +0200 Subject: [PATCH] webirc localhost entries --- server/webirc.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/webirc.js b/server/webirc.js index 15948af..aef7595 100644 --- a/server/webirc.js +++ b/server/webirc.js @@ -35,8 +35,14 @@ function resolveAddress(address, force) { new Promise((resolve, reject) => { dns.resolve(address, (err, data) => { + if(address === '127.0.0.1' || address === '0.0.0.0' || address === 'localhost') { + logger.debugLog('** WEBIRC ** Ignoring localhost entry..'); + return resolve('127.0.0.1'); + } + if(err!=null) return reject(err); let ip = data.length > 0 ? data[0] : null; + if(ip) { resolve(ip); } else {