mirror of
https://github.com/datarhei/core.git
synced 2025-10-07 17:01:01 +08:00
Prevent adding a node to itself
This commit is contained in:
@@ -500,6 +500,7 @@ func (a *api) start() error {
|
||||
a.restream = restream
|
||||
|
||||
if cluster, err := cluster.New(cluster.ClusterConfig{
|
||||
ID: cfg.ID,
|
||||
IPLimiter: a.sessionsLimiter,
|
||||
Logger: a.log.logger.core.WithComponent("Cluster"),
|
||||
}); err != nil {
|
||||
|
Reference in New Issue
Block a user