mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-24 22:16:35 +08:00
自动将同集群节点IP加入白名单/尝试使用本地防火墙提升黑名单连接封锁效率
This commit is contained in:
@@ -116,6 +116,7 @@ func (this *Node) Start() {
|
||||
this.checkDisk()
|
||||
|
||||
// 读取API配置
|
||||
remotelogs.Println("NODE", "init config ...")
|
||||
err = this.syncConfig(0)
|
||||
if err != nil {
|
||||
_, err := nodeconfigs.SharedNodeConfig()
|
||||
@@ -429,7 +430,7 @@ func (this *Node) syncConfig(taskVersion int64) error {
|
||||
clusterErr := this.checkClusterConfig()
|
||||
if clusterErr != nil {
|
||||
if os.IsNotExist(clusterErr) {
|
||||
return err
|
||||
return errors.New("can not find config file 'configs/api.yaml'")
|
||||
}
|
||||
return errors.New("check cluster config failed: " + clusterErr.Error())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user