Skip to content

@mega-yfue/eufy-sdk / mergeCandidateIps

Function: mergeCandidateIps()

ts
function mergeCandidateIps(dnsIps, extraIps?): string[];

Merge freshly-resolved DNS candidates with any previously-seen-good IPs, de-duplicated, DNS-first (the DNS results are current; the extras are a fallback in case this resolver returns fewer targets than have been seen historically). Pure/no I/O — kept separate so it's unit-testable.

Parameters

dnsIps

string[]

extraIps?

string[] = []

Returns

string[]

Independent and unofficial. Not affiliated with, endorsed by, or sponsored by Anker Innovations, Anker eufy, or eufy. "Anker eufy", "eufy" and "Anker" are trademarks of their respective owners. Use responsibly — rapid or failed logins can trigger captcha or temporary cooldowns.