Skip to content

Commit

Permalink
Allow 4 and 6 as suffix inside proto to limit ip4 or ip6 connection o…
Browse files Browse the repository at this point in the history
…nly.
  • Loading branch information
jkroepke committed Feb 2, 2019
1 parent 6c3e2ce commit 088df30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifests/server.pp
Expand Up @@ -136,7 +136,7 @@
Variant[Boolean, String] $logfile = false,
String $port = '1194',
Optional[String] $portshare = undef,
Enum['tcp', 'udp'] $proto = 'tcp',
Pattern[/^(udp|tcp)[46]?$/] $proto = 'tcp',
Enum['1', '2', '3', ''] $status_version = '',
String $status_log = "/var/log/openvpn/${name}-status.log",
String $server = '',
Expand Down
2 changes: 1 addition & 1 deletion templates/server.erb
Expand Up @@ -46,7 +46,7 @@ dh <%= @etc_directory -%>/openvpn/<%= @ca_name %>/keys/dh.pem
crl-verify <%= @etc_directory -%>/openvpn/<%= @ca_name %>/crl.pem
<% end -%>
<% end -%>
<% if @proto == 'tcp' -%>
<% if @proto != 'udp' -%>
proto <%= @proto %>-server
<% else -%>
proto <%= @proto %>
Expand Down

0 comments on commit 088df30

Please sign in to comment.