fix(settings): trim spaces from each host value

This commit is contained in:
Quentin McGaw
2024-04-29 14:27:19 +00:00
parent 3e6336fcbc
commit ae4ab39421

View File

@@ -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 {