summaryrefslogtreecommitdiffstats
path: root/src/config.y
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.y')
-rw-r--r--src/config.y6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/config.y b/src/config.y
index 1e75da8..fd60d0d 100644
--- a/src/config.y
+++ b/src/config.y
@@ -70,6 +70,8 @@
%token TOK_TUN
%token TOK_ON
%token TOK_UP
+%token TOK_PEERS
+%token TOK_FROM
%token <addr> TOK_ADDR
%token <addr6> TOK_ADDR6
@@ -212,6 +214,10 @@ include: TOK_PEER TOK_STRING maybe_as {
fastd_read_config(ctx, conf, $2, true, depth);
free($2);
}
+ | TOK_PEERS TOK_FROM TOK_STRING {
+ fastd_read_config_dir(ctx, conf, $3, depth);
+ free($3);
+ }
| TOK_STRING { fastd_read_config(ctx, conf, $1, false, depth); free($1); }
;