Skip to content

Commit

Permalink
Add additional keywords to OpenVPN lens:
Browse files Browse the repository at this point in the history
up
plugin
ping
ping-restart
ping-timer-rem
  • Loading branch information
James Juran committed Mar 30, 2015
1 parent be4a905 commit 6907959
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lenses/openvpn.aug
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ let empty = Util.empty
* - ns-cert-type => "server"
* - resolv-retry => "infinite"
* - script-security => [0-3] (execve|system)?
* - ping => num
* - ping-restart => num
* - up => filename
*************************************************************************)

let single_ip = "local"
Expand All @@ -75,6 +78,8 @@ let single_num = "port"
| "mute"
| "fragment"
| "mssfix"
| "ping"
| "ping-restart"
let single_fn = "ca"
| "cert"
| "key"
Expand All @@ -85,6 +90,7 @@ let single_fn = "ca"
| "log"
| "log-append"
| "client-config-dir"
| "up"
let single_an = "user"
| "group"

Expand Down Expand Up @@ -119,6 +125,7 @@ let single = single_entry single_num num_re
* - mute-replay-warnings
* - http-proxy-retry
* - daemon
* - ping-timer-rem
*
*************************************************************************)

Expand All @@ -133,6 +140,7 @@ let flag_words = "client-to-client"
| "mute-replay-warnings"
| "http-proxy-retry"
| "daemon"
| "ping-timer-rem"

let flag_entry (kw:regexp)
= [ key kw . comment_or_eol ]
Expand All @@ -151,6 +159,7 @@ let flag = flag_entry flag_words
* - tls-auth => filename [01]
* - remote => hostname/IP num
* - management => IP num filename
* - plugin => filename filename
*
*************************************************************************)

Expand Down Expand Up @@ -203,6 +212,10 @@ let management = [ key "management" . sep
. [ label "pwfile" . filename ] . comment_or_eol
]

let plugin = [ key "plugin" . sep
. [ label "module" . filename ] . sep
. [ label "initstring" . filename ] . comment_or_eol
]

let other = server
| server_bridge
Expand All @@ -213,6 +226,7 @@ let other = server
| remote
| http_proxy
| management
| plugin


(************************************************************************
Expand Down

0 comments on commit 6907959

Please sign in to comment.