From 39b23f7a118fc1565c5f7f6659d60faa2236ada7 Mon Sep 17 00:00:00 2001 From: thorkill Date: Sat, 14 May 2016 23:18:44 +0200 Subject: [PATCH] Make edge update work when compiled with --disable-legacy --- src/net_setup.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/net_setup.c b/src/net_setup.c index a28ab4a0..85383a69 100644 --- a/src/net_setup.c +++ b/src/net_setup.c @@ -915,9 +915,6 @@ static bool setup_myself(void) { timeout_add(&keyexpire_timeout, keyexpire_handler, &keyexpire_timeout, &(struct timeval){keylifetime, rand() % 100000}); - if (edgeupdateinterval) - timeout_add(&edgeupdate_timeout, edgeupdate_handler, &edgeupdate_timeout, &(struct timeval){edgeupdateinterval, rand() % 100000}); - /* Check if we want to use message authentication codes... */ int maclength = 4; @@ -941,6 +938,10 @@ static bool setup_myself(void) { free(digest); #endif + if (edgeupdateinterval) + timeout_add(&edgeupdate_timeout, edgeupdate_handler, &edgeupdate_timeout, &(struct timeval){edgeupdateinterval, rand() % 100000}); + + if (slpdinterval) /* Compression */ if(get_config_int(lookup_config(config_tree, "Compression"), &myself->incompression)) {