This commit is contained in:
Quentin McGaw
2020-11-11 22:28:20 +00:00
parent 3240bb7d26
commit 166b0c7095
2 changed files with 1 additions and 5 deletions

View File

@@ -101,11 +101,6 @@ func makeSettingsFromObject(common commonSettings, rawSettings json.RawMessage,
}
}
hosts := strings.Split(common.Host, ",")
for _, host := range hosts {
if len(host) == 0 {
return nil, warnings, fmt.Errorf("host cannot be empty")
}
}
ipVersion := models.IPVersion(common.IPVersion)
if len(ipVersion) == 0 {
ipVersion = constants.IPv4OrIPv6 // default

View File

@@ -139,6 +139,7 @@ type (
)
func makeDreamhostDefaultValues(key string) (values url.Values) { //nolint:unparam
values = make(url.Values)
values.Set("key", key)
values.Set("unique_id", uuid.New().String())
values.Set("format", "json")