mirror of
https://github.com/qdm12/ddns-updater.git
synced 2026-08-02 18:48:49 -04:00
fix(settings): trim spaces from each host value
This commit is contained in:
@@ -200,6 +200,7 @@ func makeSettingsFromObject(common commonSettings, rawSettings json.RawMessage,
|
||||
|
||||
providers = make([]provider.Provider, len(hosts))
|
||||
for i, host := range hosts {
|
||||
host = strings.TrimSpace(host)
|
||||
providers[i], err = provider.New(providerName, rawSettings, common.Domain,
|
||||
host, ipVersion, ipv6Suffix)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user