mirror of
https://github.com/qdm12/ddns-updater.git
synced 2026-04-05 08:53:52 -04:00
chore(config): fix providers slice capacity to right size
This commit is contained in:
@@ -147,7 +147,7 @@ func (p *PubIP) ToDNSPOptions() (options []dns.Option) {
|
||||
}
|
||||
}
|
||||
|
||||
providers := make([]dns.Provider, 0, len(p.HTTPIPProviders))
|
||||
providers := make([]dns.Provider, 0, len(uniqueProviders))
|
||||
for providerString := range uniqueProviders {
|
||||
providers = append(providers, dns.Provider(providerString))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user