X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fdiscovery.c;h=df88b17919178a5075a769cf5f191256911c3810;hb=976c4e1591e60ba89e7dcc32b4a8106e7d4156e5;hp=2a74cc35bd22a5ef321bc68ce80ff0f50b521143;hpb=4c57e6902219ecca1872e18e34365d8e54a0f407;p=meshlink diff --git a/src/discovery.c b/src/discovery.c index 2a74cc35..df88b179 100644 --- a/src/discovery.c +++ b/src/discovery.c @@ -251,6 +251,7 @@ static void discovery_resolve_callback(CattaSServiceResolver *resolver, CattaIfI node_t *n = (node_t *)node; connection_t *c = n->connection; + n->catta_address = naddress; node_add_recent_address(mesh, n, &naddress); if(c && c->outgoing && !c->status.active) { @@ -262,7 +263,7 @@ static void discovery_resolve_callback(CattaSServiceResolver *resolver, CattaIfI }); } - c->last_ping_time = 0; + c->last_ping_time = -3600; } } else {