hotfix(updater): defaults for settings in CLI mode

This commit is contained in:
Quentin McGaw
2022-01-07 22:29:30 +00:00
parent b32c01c11a
commit b0c2d5f299
3 changed files with 4 additions and 2 deletions

View File

@@ -85,7 +85,7 @@ func (u *Updater) overrideWith(other Updater) {
u.CLI = helpers.MergeWithBool(u.CLI, other.CLI)
}
func (u *Updater) setDefaults() {
func (u *Updater) SetDefaults() {
u.Period = helpers.DefaultDuration(u.Period, 0)
u.DNSAddress = helpers.DefaultIP(u.DNSAddress, net.IPv4(1, 1, 1, 1))
u.CLI = helpers.DefaultBool(u.CLI, false)