diff --git a/internal/web/actions/default/clusters/cluster/settings/index.go b/internal/web/actions/default/clusters/cluster/settings/index.go index 2c07ceaf..b6a06a7f 100644 --- a/internal/web/actions/default/clusters/cluster/settings/index.go +++ b/internal/web/actions/default/clusters/cluster/settings/index.go @@ -122,6 +122,7 @@ func (this *IndexAction) RunPost(params struct { AutoOpenPorts bool ClockAutoSync bool ClockServer string + ClockCheckChrony bool AutoRemoteStart bool AutoInstallNftables bool @@ -154,6 +155,7 @@ func (this *IndexAction) RunPost(params struct { var clockConfig = nodeconfigs.DefaultClockConfig() clockConfig.AutoSync = params.ClockAutoSync clockConfig.Server = params.ClockServer + clockConfig.CheckChrony = params.ClockCheckChrony clockConfigJSON, err := json.Marshal(clockConfig) if err != nil { this.ErrorPage(err) diff --git a/web/views/@default/clusters/cluster/settings/index.html b/web/views/@default/clusters/cluster/settings/index.html index 209a7cca..6dc73963 100644 --- a/web/views/@default/clusters/cluster/settings/index.html +++ b/web/views/@default/clusters/cluster/settings/index.html @@ -85,6 +85,13 @@

可选项。默认使用pool.ntp.org

+ + 检查Chrony + + +

选中后,表示如果chrony(另一款时间同步软件)正在运行,则不重复执行时间同步。

+ + 自动远程启动