From 11a374ae118ed8c4eb5fde4fe4f456a48fdb77b2 Mon Sep 17 00:00:00 2001 From: derelict-pf Date: Thu, 31 Mar 2016 15:40:08 -0700 Subject: [PATCH] Bootstrap for outbound NAT port should accept a range. The form validation still exists for a port range here but the form itself will not accept anything but a number 1 - 65535. Make like the other port/range fields. --- src/usr/local/www/firewall_nat_out_edit.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/usr/local/www/firewall_nat_out_edit.php b/src/usr/local/www/firewall_nat_out_edit.php index db2b6846a2..d85b278c4c 100644 --- a/src/usr/local/www/firewall_nat_out_edit.php +++ b/src/usr/local/www/firewall_nat_out_edit.php @@ -607,10 +607,9 @@ $group->addClass('natportgrp'); $group->add(new Form_Input( 'natport', null, - 'number', - $pconfig['natport'], - ['min' => '1', 'max' => '65536'] -))->setHelp('Enter the source port for the outbound NAT mapping.'); + 'text', + $pconfig['natport'] +))->setHelp('Enter the source port or range for the outbound NAT mapping.'); $group->add(new Form_Checkbox( 'staticnatport',