diff options
Diffstat (limited to 'src/config.y')
-rw-r--r-- | src/config.y | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/config.y b/src/config.y index bd106e7..c4d7eaa 100644 --- a/src/config.y +++ b/src/config.y @@ -191,7 +191,6 @@ statement: peer_group_statement | TOK_PMTU pmtu ';' | TOK_MODE mode ';' | TOK_PROTOCOL protocol ';' - | TOK_METHOD method ';' | TOK_SECRET secret ';' | TOK_ON TOK_PRE_UP on_pre_up ';' | TOK_ON TOK_UP on_up ';' @@ -209,6 +208,7 @@ peer_group_statement: TOK_PEER peer '{' peer_conf '}' peer_after | TOK_PEER TOK_GROUP peer_group '{' peer_group_config '}' peer_group_after | TOK_PEER TOK_LIMIT peer_limit ';' + | TOK_METHOD method ';' | TOK_INCLUDE include ';' ; @@ -371,11 +371,6 @@ protocol: TOK_STRING { } ; -method: TOK_STRING { - fastd_config_method($1->str); - } - ; - secret: TOK_STRING { free(conf.secret); conf.secret = fastd_strdup($1->str); } ; @@ -546,6 +541,11 @@ peer_limit: TOK_UINT { } ; +method: TOK_STRING { + fastd_config_method(state->peer_group, $1->str); + } + ; + forward: boolean { conf.forward = $1; } ; |