Skip to content

Commit 35878e2

Browse files
ajjonesycomaujimirocks
authored andcommitted
Update server.erb - fix proto for tcp client mode
Update server.erb - fix proto for tcp client mode so that it sets: proto tcp rather than proto tcp-server
1 parent 24ed209 commit 35878e2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

templates/server.erb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,14 @@ crl-verify <%= @etc_directory -%>/openvpn/<%= @ca_name %>/crl.pem
4747
<% end -%>
4848
<% end -%>
4949
<% if @proto.include?('tcp') -%>
50+
<% unless @remote -%>
5051
proto <%= @proto %>-server
5152
<% else -%>
5253
proto <%= @proto %>
5354
<% end -%>
55+
<% else -%>
56+
proto <%= @proto %>
57+
<% end -%>
5458
<% if @nobind -%>
5559
nobind
5660
<% else -%>

0 commit comments

Comments
 (0)