to->status.validkey = false;
to->status.waitingforkey = true;
to->last_req_key = mesh->loop.now.tv_sec;
- to->incompression = mesh->self->incompression;
return sptps_start(&to->sptps, to, true, true, mesh->private_key, to->ecdsa, label, sizeof(label) - 1, send_initial_sptps_data, receive_sptps_record);
}
logger(mesh, MESHLINK_INFO, "Learned ECDSA public key from %s", from->name);
from->status.dirty = true;
+
+ /* If we are trying to form an outgoing connection to this node, retry immediately */
+ for list_each(outgoing_t, outgoing, mesh->outgoings) {
+ if(outgoing->node == from && outgoing->ev.cb) {
+ outgoing->timeout = 0;
+ timeout_set(&mesh->loop, &outgoing->ev, &(struct timeval) {
+ 0, 0
+ });
+ }
+ }
+
return true;
}
return true;
}
- from->outcompression = compression;
-
/* SPTPS or old-style key exchange? */
char buf[strlen(key)];
update_node_udp(mesh, from, &sa);
}
- if(from->options & OPTION_PMTU_DISCOVERY && !(from->options & OPTION_TCPONLY)) {
- send_mtu_probe(mesh, from);
- }
+ send_mtu_probe(mesh, from);
}
return true;