X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fprotocol_key.c;fp=src%2Fprotocol_key.c;h=179252984e1c3856947ba2569a86ba6e6d2b324c;hb=282b99f3c71705bd6e34d4e4f9e8369ea63c87ed;hp=64a0ce8faff20b743ed81740d925fe613dd04793;hpb=3bcd5ec746a5575c0c66f8b34922c038eb363b0a;p=meshlink diff --git a/src/protocol_key.c b/src/protocol_key.c index 64a0ce8f..17925298 100644 --- a/src/protocol_key.c +++ b/src/protocol_key.c @@ -96,7 +96,6 @@ bool send_req_key(meshlink_handle_t *mesh, node_t *to) { 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); } @@ -335,8 +334,6 @@ bool ans_key_h(meshlink_handle_t *mesh, connection_t *c, const char *request) { return true; } - from->outcompression = compression; - /* SPTPS or old-style key exchange? */ char buf[strlen(key)]; @@ -353,9 +350,7 @@ bool ans_key_h(meshlink_handle_t *mesh, connection_t *c, const char *request) { 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;