mirror of
https://github.com/timothymiller/cloudflare-ddns.git
synced 2026-03-21 22:48:57 -03:00
undo FIX: remove duplicates so CloudflareHandle::set_ips sees stable input
Signed-off-by: DaRK AnGeL <28630321+masterwishx@users.noreply.github.com>
This commit is contained in:
@@ -66,11 +66,8 @@ pub async fn update_once(
|
||||
}
|
||||
|
||||
// Update DNS records (env var mode - domain-based)
|
||||
for (ip_type, domains) in &config.domains {
|
||||
let mut ips = detected_ips.get(ip_type).cloned().unwrap_or_default();
|
||||
// FIX: remove duplicates so CloudflareHandle::set_ips sees stable input
|
||||
ips.sort();
|
||||
ips.dedup();
|
||||
for (ip_type, domains) in &config.domains {
|
||||
let ips = detected_ips.get(ip_type).cloned().unwrap_or_default();
|
||||
let record_type = ip_type.record_type();
|
||||
|
||||
for domain_str in domains {
|
||||
|
||||
Reference in New Issue
Block a user