Commit 51531ca0 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) interface subnet allow /31 https://github.com/opnsense/core/issues/934

parent a8f5cf50
......@@ -1868,11 +1868,9 @@ include("head.inc");
<select name="subnet" class="selectpicker" data-style="btn-default" data-width="auto" data-size="10" data-id="subnet">
<?php
for ($i = 32; $i > 0; $i--):
if ($i <> 31):?>
for ($i = 32; $i > 0; $i--):?>
<option value="<?=$i;?>" <?=$i == $pconfig['subnet'] ? "selected=\"selected\"" : "";?>><?=$i;?></option>
<?php
endif;
endfor;?>
</select>
</td>
......@@ -1996,13 +1994,11 @@ include("head.inc");
<td>
<select name="alias-subnet" class="selectpicker" data-style="btn-default" id="alias-subnet" data-width="auto" data-size="10">
<?php
for ($i = 32; $i > 0; $i--):
if ($i <> 31):?>
for ($i = 32; $i > 0; $i--):?>
<option value="<?=$i;?>" <?=$i == $pconfig['alias-subnet'] ? "selected=\"selected\"" : "";?> >
<?=$i;?>
</option>
<?php
endif;
endfor;?>
</select>
</td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment