diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-29 04:25:30 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-29 04:25:30 +0200 |
commit | d2bf3c09479e5956dfcc0914c99082e6ea6f94dc (patch) | |
tree | e9c1324b9b71beaa75c38282c8c4e00ccd30ac4e /src/config.y | |
parent | eb0c48b789bbf41745287adb6b2949f84e7e9171 (diff) | |
download | fastd-d2bf3c09479e5956dfcc0914c99082e6ea6f94dc.tar fastd-d2bf3c09479e5956dfcc0914c99082e6ea6f94dc.zip |
Add support for Tinc-like peer directory configurations
Diffstat (limited to 'src/config.y')
-rw-r--r-- | src/config.y | 6 |
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); } ; |