Don't add duplicates for introduced nodes without repos (fixes #745)

This commit is contained in:
Jakob Borg 2014-09-27 09:37:37 +02:00
parent b34102cd11
commit fbdbd722b1

View File

@ -475,7 +475,7 @@ func (m *Model) ClusterConfig(nodeID protocol.NodeID, cm protocol.ClusterConfigM
var id protocol.NodeID var id protocol.NodeID
copy(id[:], node.ID) 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. // The node is currently unknown. Add it to the config.
l.Infof("Adding node %v to config (vouched for by introducer %v)", id, nodeID) l.Infof("Adding node %v to config (vouched for by introducer %v)", id, nodeID)