diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-04-16 05:23:12 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-04-16 05:23:12 +0200 |
commit | 96ec41768b5937e5cf0cd83bf815d365d12d1f93 (patch) | |
tree | c56fb1c45db75c32b156b5ceee8758334df69c12 /src/config.l | |
parent | 037c58ae51a61064d7bb5022715546509328d83f (diff) | |
download | fastd-96ec41768b5937e5cf0cd83bf815d365d12d1f93.tar fastd-96ec41768b5937e5cf0cd83bf815d365d12d1f93.zip |
Add support for peers specified by hostnames
Diffstat (limited to 'src/config.l')
-rw-r--r-- | src/config.l | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/config.l b/src/config.l index f20116c..c05f0e1 100644 --- a/src/config.l +++ b/src/config.l @@ -61,7 +61,9 @@ mode { UPDATE_LOCATION; return TOK_MODE; } protocol { UPDATE_LOCATION; return TOK_PROTOCOL; } method { UPDATE_LOCATION; return TOK_METHOD; } peer { UPDATE_LOCATION; return TOK_PEER; } -address { UPDATE_LOCATION; return TOK_ADDRESS; } +remote { UPDATE_LOCATION; return TOK_REMOTE; } +ipv4 { UPDATE_LOCATION; return TOK_IPV4; } +ipv6 { UPDATE_LOCATION; return TOK_IPV6; } secret { UPDATE_LOCATION; return TOK_SECRET; } key { UPDATE_LOCATION; return TOK_KEY; } include { UPDATE_LOCATION; return TOK_INCLUDE; } @@ -87,6 +89,7 @@ debug { UPDATE_LOCATION; return TOK_DEBUG; } peer-to-peer { UPDATE_LOCATION; return TOK_PEER_TO_PEER; } yes { UPDATE_LOCATION; return TOK_YES; } no { UPDATE_LOCATION; return TOK_NO; } +port { UPDATE_LOCATION; return TOK_PORT; } [0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3} { UPDATE_LOCATION; |