mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Improve logging in resolveHostnames function to provide clearer output for resolved IP addresses
This commit is contained in:
@@ -94,12 +94,9 @@ async function resolveHostnames() {
|
|||||||
|
|
||||||
if (isValidHostname(entry)) {
|
if (isValidHostname(entry)) {
|
||||||
const result = await dns.promises.lookup(entry);
|
const result = await dns.promises.lookup(entry);
|
||||||
|
console.info(`Resolved whitelist hostname ${entry} to IPv${result.family} address ${result.address}`);
|
||||||
if (result.address) {
|
|
||||||
console.info('Resolved whitelist hostname', entry, 'to IP address', result.address);
|
|
||||||
whitelist[i] = result.address;
|
whitelist[i] = result.address;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} catch {
|
} catch {
|
||||||
// Ignore errors when resolving hostnames
|
// Ignore errors when resolving hostnames
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user