idk what I was thinking
This commit is contained in:
parent
ee70d8c865
commit
4c3e276df4
@ -429,7 +429,7 @@ class IRCConnection extends EventEmitter {
|
|||||||
autojoin: [],
|
autojoin: [],
|
||||||
secure: globalConfig.secure_by_default,
|
secure: globalConfig.secure_by_default,
|
||||||
password: '',
|
password: '',
|
||||||
address: '0.0.0.0',
|
address: providedInfo.server,
|
||||||
rejectUnauthorized: globalConfig.rejectUnauthorizedCertificates
|
rejectUnauthorized: globalConfig.rejectUnauthorizedCertificates
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -34,12 +34,12 @@ function resolveAddress(address, force) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
new Promise((resolve, reject) => {
|
new Promise((resolve, reject) => {
|
||||||
|
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) => {
|
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);
|
if(err!=null) return reject(err);
|
||||||
let ip = data.length > 0 ? data[0] : null;
|
let ip = data.length > 0 ? data[0] : null;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user