Skip to content

Commit

Permalink
interfaces: allow all IPv6 prefixes from 48 to 64
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Mar 20, 2018
1 parent aedfc6b commit 77bcfef
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion src/www/interfaces.php
Original file line number Diff line number Diff line change
Expand Up @@ -2492,7 +2492,26 @@ function toggle_allcfg() {
<td>
<select name="dhcp6-ia-pd-len" class="selectpicker" data-style="btn-default" id="dhcp6-ia-pd-len">
<?php
foreach(array("none" => "None", 16 => "48", 12 => "52", 8 => "56", 4 => "60", 2 => "62", 1 => "63", 0 => "64") as $bits => $length):?>
foreach(array(
'none' => 'None',
16 => '48',
15 => '49',
14 => '50',
13 => '51',
12 => '52',
11 => '53',
10 => '54',
9 => '55',
8 => '56',
7 => '57',
6 => '58',
5 => '59',
4 => '60',
3 => '61',
2 => '62',
1 => '63',
0 => '64',
) as $bits => $length): ?>
<option value="<?=$bits;?>" <?=$bits == $pconfig['dhcp6-ia-pd-len'] ? "selected=\"selected\"" : "";?>>
<?=$length;?>
</option>
Expand Down

0 comments on commit 77bcfef

Please sign in to comment.