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:
DaRK AnGeL
2026-03-17 10:10:00 +02:00
parent 3c7072f4b6
commit 8a4b57c163

View File

@@ -66,11 +66,8 @@ pub async fn update_once(
} }
// Update DNS records (env var mode - domain-based) // Update DNS records (env var mode - domain-based)
for (ip_type, domains) in &config.domains { for (ip_type, domains) in &config.domains {
let mut ips = detected_ips.get(ip_type).cloned().unwrap_or_default(); let ips = detected_ips.get(ip_type).cloned().unwrap_or_default();
// FIX: remove duplicates so CloudflareHandle::set_ips sees stable input
ips.sort();
ips.dedup();
let record_type = ip_type.record_type(); let record_type = ip_type.record_type();
for domain_str in domains { for domain_str in domains {