diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-08-18 22:52:25 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-08-18 22:52:25 +0200 |
commit | 21ade840c989e9fcebef63e2999f5c31843c47b6 (patch) | |
tree | 54bac8e630858a22824262c91f0f71297c4feb34 /src/peer.c | |
parent | c9c7cbb67c8a3cff9241bee1e1b1902be4e0a799 (diff) | |
download | fastd-21ade840c989e9fcebef63e2999f5c31843c47b6.tar fastd-21ade840c989e9fcebef63e2999f5c31843c47b6.zip |
Unify enabled and dynamic flags into a config_state flag
Diffstat (limited to 'src/peer.c')
-rw-r--r-- | src/peer.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -742,8 +742,7 @@ fastd_peer_t* fastd_peer_add(fastd_peer_config_t *peer_conf) { exit_bug("tried to add dynamic peer without on-verify command"); peer->config = fastd_peer_config_new(conf.peer_group); - - peer->dynamic = true; + peer->config->config_state = CONFIG_DYNAMIC; peer->verify_timeout = ctx.now; peer->verify_valid_timeout = ctx.now; |