From 954202d03343e3bfbba9ada401ff7c54dad571f2 Mon Sep 17 00:00:00 2001 From: jim-p Date: Fri, 26 Feb 2016 11:33:45 -0500 Subject: [PATCH] Allow ":" in the route destination network, otherwise an IPv6 address cannot be entered. --- src/usr/local/www/system_routes_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usr/local/www/system_routes_edit.php b/src/usr/local/www/system_routes_edit.php index aacf260026..b8d9c3a31c 100644 --- a/src/usr/local/www/system_routes_edit.php +++ b/src/usr/local/www/system_routes_edit.php @@ -279,7 +279,7 @@ $section->addInput(new Form_IpAddress( 'network', 'Destination network', $pconfig['network'] -))->addMask('network_subnet', $pconfig['network_subnet'])->setPattern('[.a-zA-Z0-9_]+')->setHelp('Destination network for this static route'); +))->addMask('network_subnet', $pconfig['network_subnet'])->setPattern('[.a-zA-Z0-9_:]+')->setHelp('Destination network for this static route'); $allGateways = array_combine( array_map(function($g){ return $g['name']; }, $a_gateways),