idk what I was thinking
This commit is contained in:
parent
ee70d8c865
commit
4c3e276df4
@ -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
|
||||
};
|
||||
|
||||
|
@ -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');
|
||||
}
|
||||
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;
|
||||
|
||||
|
Reference in New Issue
Block a user