- Preparing search index...
- The search index is not available
polykey
Function resolveHostnames
- resolveHostnames(addresses, existingAddresses?): Promise<{
host: Host;
port: Port;
}[]>
-
Parameters
-
-
existingAddresses: Set<string> = ...
Returns Promise<{
host: Host;
port: Port;
}[]>
Takes an array of host or hostnames and resolves them to the host addresses. It will also filter out any duplicates or IPV6 addresses.