Prevent adding a node to itself

This commit is contained in:
Ingo Oppermann
2022-08-16 18:04:22 +03:00
parent 16ada6225b
commit 8312718f9c
2 changed files with 9 additions and 0 deletions

View File

@@ -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 {