mirror of
https://github.com/qdm12/ddns-updater.git
synced 2026-07-29 09:02:38 -04:00
Fix #115
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user