Fix forwarding of edge updates.
Commit e4670fc accidentily prevented ADD_EDGE messages from propagating in some cases.
This commit is contained in:
parent
60fb2308e5
commit
4d7469e0da
1 changed files with 2 additions and 2 deletions
|
@ -153,8 +153,7 @@ bool add_edge_h(connection_t *c, const char *request) {
|
||||||
avl_insert_node(edge_weight_tree, node);
|
avl_insert_node(edge_weight_tree, node);
|
||||||
}
|
}
|
||||||
|
|
||||||
graph();
|
goto done;
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
} else if(sockaddrcmp(&e->local_address, &local_address)) {
|
} else if(sockaddrcmp(&e->local_address, &local_address)) {
|
||||||
if(from == myself) {
|
if(from == myself) {
|
||||||
|
@ -212,6 +211,7 @@ bool add_edge_h(connection_t *c, const char *request) {
|
||||||
e->weight = weight;
|
e->weight = weight;
|
||||||
edge_add(e);
|
edge_add(e);
|
||||||
|
|
||||||
|
done:
|
||||||
/* Tell the rest about the new edge */
|
/* Tell the rest about the new edge */
|
||||||
|
|
||||||
if(!tunnelserver)
|
if(!tunnelserver)
|
||||||
|
|
Loading…
Reference in a new issue