可以在集群中配置是否自动在firewalld中开放端口

This commit is contained in:
GoEdgeLab
2022-01-03 16:27:50 +08:00
parent 38ac06a530
commit 63fda6b100
4 changed files with 8 additions and 3 deletions

View File

@@ -827,6 +827,7 @@ func (this *NodeDAO) ComposeNodeConfig(tx *dbs.Tx, nodeId int64, cacheMap *utils
if clusterIndex == 0 {
config.MaxThreads = int(nodeCluster.NodeMaxThreads)
config.TCPMaxConnections = int(nodeCluster.NodeTCPMaxConnections)
config.AutoOpenPorts = nodeCluster.AutoOpenPorts == 1
}
clusterIndex++