diff options
Diffstat (limited to 'src/fastd.c')
-rw-r--r-- | src/fastd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fastd.c b/src/fastd.c index e63b204..5d24b9b 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -206,10 +206,10 @@ static inline void on_post_down(void) { */ static void init_peers(void) { fastd_peer_config_t *peer_conf; - for (peer_conf = conf.peers; peer_conf; peer_conf = peer_conf->next) + for (peer_conf = ctx.peer_configs; peer_conf; peer_conf = peer_conf->next) conf.protocol->peer_configure(peer_conf); - for (peer_conf = conf.peers; peer_conf; peer_conf = peer_conf->next) { + for (peer_conf = ctx.peer_configs; peer_conf; peer_conf = peer_conf->next) { bool enable = conf.protocol->peer_check(peer_conf); if (enable && !peer_conf->enabled) |