idk what I was thinking

This commit is contained in:
Evert Prants 2016-12-22 21:21:14 +02:00
parent ee70d8c865
commit 4c3e276df4
2 changed files with 6 additions and 6 deletions

View File

@ -429,7 +429,7 @@ class IRCConnection extends EventEmitter {
autojoin: [],
secure: globalConfig.secure_by_default,
password: '',
address: '0.0.0.0',
address: providedInfo.server,
rejectUnauthorized: globalConfig.rejectUnauthorizedCertificates
};

View File

@ -34,12 +34,12 @@ 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');
}
dns.resolve(address, (err, data) => {
if(err!=null) return reject(err);
let ip = data.length > 0 ? data[0] : null;