Merge branch '1.1' of github.com:gsliepen/tinc into thkr-1.1-ponyhof
, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit.
This commit is contained in:
commit
9e0c4a7349
3 changed files with 5 additions and 5 deletions
|
@ -148,9 +148,6 @@ bool read_ecdsa_public_key(connection_t *c) {
|
|||
|
||||
#ifndef DISABLE_LEGACY
|
||||
bool read_rsa_public_key(connection_t *c) {
|
||||
if(ecdsa_active(c->ecdsa))
|
||||
return true;
|
||||
|
||||
FILE *fp;
|
||||
char *fname;
|
||||
char *n;
|
||||
|
|
|
@ -135,7 +135,8 @@ bool receive_request(connection_t *c, const char *request) {
|
|||
if(!request_handlers[reqno](c, request)) {
|
||||
/* Something went wrong. Probably scriptkiddies. Terminate. */
|
||||
|
||||
logger(DEBUG_ALWAYS, LOG_ERR, "Error while processing %s from %s (%s)", request_name[reqno], c->name, c->hostname);
|
||||
if(request != TERMREQ)
|
||||
logger(DEBUG_ALWAYS, LOG_ERR, "Error while processing %s from %s (%s)", request_name[reqno], c->name, c->hostname);
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -387,7 +387,7 @@ bool id_h(connection_t *c, const char *request) {
|
|||
|
||||
/* Forbid version rollback for nodes whose Ed25519 key we know */
|
||||
|
||||
if(ecdsa_active(c->ecdsa) && c->protocol_minor < 2) {
|
||||
if(ecdsa_active(c->ecdsa) && c->protocol_minor < 1) {
|
||||
logger(DEBUG_ALWAYS, LOG_ERR, "Peer %s (%s) tries to roll back protocol version to %d.%d",
|
||||
c->name, c->hostname, c->protocol_major, c->protocol_minor);
|
||||
return false;
|
||||
|
@ -781,6 +781,8 @@ static bool upgrade_h(connection_t *c, const char *request) {
|
|||
logger(DEBUG_ALWAYS, LOG_INFO, "Got Ed25519 public key from %s (%s), upgrading!", c->name, c->hostname);
|
||||
append_config_file(c->name, "Ed25519PublicKey", pubkey);
|
||||
c->allow_request = TERMREQ;
|
||||
if(c->outgoing)
|
||||
c->outgoing->timeout = 0;
|
||||
return send_termreq(c);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue