mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 23:00:58 +00:00
Don't add duplicates for introduced nodes without repos (fixes #745)
This commit is contained in:
parent
b34102cd11
commit
fbdbd722b1
@ -475,7 +475,7 @@ func (m *Model) ClusterConfig(nodeID protocol.NodeID, cm protocol.ClusterConfigM
|
||||
var id protocol.NodeID
|
||||
copy(id[:], node.ID)
|
||||
|
||||
if _, ok := m.nodeRepos[id]; !ok {
|
||||
if m.cfg.GetNodeConfiguration(id)==nil {
|
||||
// The node is currently unknown. Add it to the config.
|
||||
|
||||
l.Infof("Adding node %v to config (vouched for by introducer %v)", id, nodeID)
|
||||
|
Loading…
Reference in New Issue
Block a user