将全局设置的TCP相关设置移到“集群设置--网站设置”中

This commit is contained in:
刘祥超
2023-09-18 16:55:45 +08:00
parent 94b95beadf
commit 31a69ecb12
4 changed files with 17 additions and 48 deletions

View File

@@ -792,8 +792,14 @@ func upgradeV1_2_10(db *dbs.DB) error {
if err != nil {
return err
}
globalServerConfig.HTTPAll.DomainAuditingIsOn = oldGlobalConfig.HTTPAll.DomainAuditingIsOn
globalServerConfig.HTTPAll.DomainAuditingPrompt = oldGlobalConfig.HTTPAll.DomainAuditingPrompt
globalServerConfig.TCPAll.DenyPorts = oldGlobalConfig.TCPAll.DenyPorts
globalServerConfig.TCPAll.PortRangeMin = oldGlobalConfig.TCPAll.PortRangeMin
globalServerConfig.TCPAll.PortRangeMax = oldGlobalConfig.TCPAll.PortRangeMax
globalServerConfigJSON, err := json.Marshal(globalServerConfig)
if err != nil {
return err