Skip to content

Commit b8b8035

Browse files
authored
Merge pull request #349 from jimirocks/tcp_client
Update server.erb - fix proto for tcp client mode
2 parents 24ed209 + 35878e2 commit b8b8035

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)