mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Update the resolveHostnames function to clarify its behavior and improve documentation
This commit is contained in:
@@ -79,8 +79,8 @@ function isIpFormat(entry) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate the IP addresses in the whitelist.
|
||||
* Hostnames are resolved to IP addresses.
|
||||
* Resolves hostnames in the whitelist to IP addresses.
|
||||
* This function will modify the whitelist array in place.
|
||||
*/
|
||||
async function resolveHostnames() {
|
||||
for (let i = 0; i < whitelist.length; i++) {
|
||||
|
Reference in New Issue
Block a user