diff options
author | Justin Lambert <jlambert@eml.cc> | 2013-01-14 09:30:24 -0700 |
---|---|---|
committer | Justin Lambert <jlambert@eml.cc> | 2013-01-14 09:30:24 -0700 |
commit | 3a81ce3cdaf9eaaad5c38cc2c56051785b84bd09 (patch) | |
tree | c3624ffed50c09e1d56d8ad976cc1f7dbd372039 /templates | |
parent | 2dce9ca4c11ffeb43aaafe7551d3fa098fad75c4 (diff) |
added ifconfig-push and iroute options to openvpn::client
Diffstat (limited to 'templates')
-rw-r--r-- | templates/client.erb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/client.erb b/templates/client.erb index 021ed61..d8b9213 100644 --- a/templates/client.erb +++ b/templates/client.erb @@ -24,3 +24,11 @@ mute-replay-warnings ns-cert-type server verb <%= scope.lookupvar('verb') %> mute <%= scope.lookupvar('mute') %> +<% if scope.lookupvar('iroute') != '' -%> +<% scope.lookupvar('iroute').to_a.each do |route| -%> +iroute <%= route %> +<% end -%> +<% end -%> +<% if scope.lookupvar('ifconfig_push') != '' -%> +ifconfig-push <%= scope.lookupvar('ifconfig_push') %> +<% end -%>
\ No newline at end of file |