summaryrefslogtreecommitdiffstats
path: root/src/config.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-11-10 14:55:41 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-11-10 14:55:41 +0100
commit13c71785b58fe542ca95eeed11dabf99f1be71fa (patch)
treec5e9469af5de6dbba2a2b79b598678bff576e31a /src/config.c
parent68b33305cc7d258b5556a30f6cb96e1882bda0d7 (diff)
downloadfastd-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.c2
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);