Make edge update work when compiled with --disable-legacy

This commit is contained in:
thorkill 2016-05-14 23:18:44 +02:00
parent 231bd39986
commit 39b23f7a11

View file

@ -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)) {