Skip to content

Commit

Permalink
Support authenticated http-proxy
Browse files Browse the repository at this point in the history
Cannot use "filename" shorthand here, because filename performs a greedy match
and will swallow the authtype param.
  • Loading branch information
James Juran committed Mar 31, 2015
1 parent 6907959 commit fa1f151
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lenses/openvpn.aug
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,9 @@ let remote = [ key "remote" . sep

let http_proxy = [ key "http-proxy" .
( sep . [ label "server" . store /[A-Za-z0-9._-]+/ ] .
( sep . [ label "port" . num ] )? )?
( sep . [ label "port" . num ] .
( sep . [ label "authfile" . store /[A-Za-z0-9._\/-]+/ ] .
( sep . [ label "authtype" . store /(none|basic|ntlm)/ ] )? )? )? )?
. comment_or_eol
]

Expand Down

0 comments on commit fa1f151

Please sign in to comment.