Merge pull request #2133 from gravitl/refactor_auto_update

Add host level auto update setting with default true
This commit is contained in:
dcarns
2023-04-19 09:40:56 -04:00
committed by GitHub
8 changed files with 23 additions and 0 deletions

View File

@@ -97,6 +97,7 @@ func CreateHost(h *models.Host) error {
return err
}
h.HostPass = string(hash)
h.AutoUpdate = servercfg.AutoUpdateEnabled()
// if another server has already updated proxyenabled, leave it alone
if !h.ProxyEnabledSet {
log.Println("checking default proxy", servercfg.GetServerConfig().DefaultProxyMode)