fix port number conversion to string issue

parent a32ad6cf
......@@ -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' : '' -%>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment