Bug fix: Stop DOT if disabled by new settings
This commit is contained in:
@@ -92,6 +92,8 @@ func (l *looper) SetSettings(settings settings.DNS) (outcome string) {
|
|||||||
return "update period changed"
|
return "update period changed"
|
||||||
}
|
}
|
||||||
_, _ = l.SetStatus(constants.Stopped)
|
_, _ = l.SetStatus(constants.Stopped)
|
||||||
|
if settings.Enabled {
|
||||||
outcome, _ = l.SetStatus(constants.Running)
|
outcome, _ = l.SetStatus(constants.Running)
|
||||||
|
}
|
||||||
return outcome
|
return outcome
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user