Revision c3d27400 topology.c

View differences:

topology.c
52 52
  if (from) {
53 53
    dprintf("from:%s, ",node_addr(from));
54 54
    if (peerset_check(pset, from) < 0) {
55
      topAddNeighbour(from);	//@TODO: this is agressive
55
      topAddNeighbour(from, NULL, 0);	//@TODO: this is agressive
56 56
      add_peer(from);
57 57
    }
58 58
  }
......
91 91
  if (!p) {
92 92
    fprintf(stderr,"warning: received message from unknown peer: %s!\n",node_addr(id));
93 93
    if (reg) {
94
      topAddNeighbour(id);	//@TODO: this is agressive
94
      topAddNeighbour(id, NULL, 0);	//@TODO: this is agressive
95 95
      add_peer(id);
96 96
      p = peerset_get_peer(pset,id);
97 97
    }

Also available in: Unified diff