Allow ":" in the route destination network, otherwise an IPv6 address cannot be entered.

This commit is contained in:
jim-p 2016-02-26 11:33:45 -05:00
parent a326d8a152
commit 954202d033

View File

@ -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),