diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-11-10 14:55:41 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-11-10 14:55:41 +0100 |
commit | 13c71785b58fe542ca95eeed11dabf99f1be71fa (patch) | |
tree | c5e9469af5de6dbba2a2b79b598678bff576e31a /src/config.c | |
parent | 68b33305cc7d258b5556a30f6cb96e1882bda0d7 (diff) | |
download | fastd-13c71785b58fe542ca95eeed11dabf99f1be71fa.tar fastd-13c71785b58fe542ca95eeed11dabf99f1be71fa.zip |
Don't allow global config statements in peer groups
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.c b/src/config.c index 409a83b..09a0adc 100644 --- a/src/config.c +++ b/src/config.c @@ -435,7 +435,7 @@ bool fastd_read_config(fastd_context *ctx, fastd_config *conf, const char *filen if (peer_config) token = START_PEER_CONFIG; else - token = START_CONFIG; + token = conf->peer_group->parent ? START_PEER_GROUP_CONFIG : START_CONFIG; int parse_ret = fastd_config_push_parse(ps, token, &token_val, &loc, ctx, conf, filename, depth+1); |