mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Add correct bitmask for ipv6
This commit is contained in:
parent
966780ad0f
commit
ef593cd3c0
@ -152,8 +152,10 @@ if ($_POST) {
|
||||
if (!empty($oroute)) {
|
||||
if (is_alias($oroute['network'])) {
|
||||
foreach (filter_expand_alias_array($oroute['network']) as $tgt) {
|
||||
if (is_ipaddr($tgt))
|
||||
if (is_ipaddrv4($tgt))
|
||||
$tgt .= "/32";
|
||||
else if (is_ipaddrv6($tgt))
|
||||
$tgt .= "/128";
|
||||
if (!is_subnet($tgt))
|
||||
continue;
|
||||
$old_targets[] = $tgt;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user