Skip to content
Snippets Groups Projects
Verified Commit 8ce47aed authored by Adam Lewenberg's avatar Adam Lewenberg
Browse files

fix port number conversion to string issue

parent a32ad6cf
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,9 @@ release/005.008 (unreleased)
[ssh] Add $max_sessions options. [adamhl]
[iptables] Ensure that port numbers are converted to strings inside
the rules erb file to avoid Ruby errors. [adamhl]
release/005.007 (2017-06-22)
[kerberos] Add option to completely override /etc/krb5.conf using
......
<%# Generic iptables rule template used by iptables::rule. -%>
# <%= @name %><% if @description != '' then %> -- <%= @description %><% end %>
<% [@port].flatten.each do |pt| -%>
<% p = (pt != '') ? '--dport ' + pt : '' -%>
<% p = (pt.to_s() != '') ? '--dport ' + pt.to_s() : '' -%>
<% [@source].flatten.each do |src| -%>
<% [@protocol].flatten.each do |pr| -%>
<% syn = (pr == 'tcp') ? ' --syn' : '' -%>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment