Skip to content

Commit

Permalink
interfaces: display of prefix ID is wrong here; closes #2622
Browse files Browse the repository at this point in the history
We still have the validation on save which is correct.  While
here improve the help text.
  • Loading branch information
fichtner committed Sep 3, 2018
1 parent 92fc44c commit 91ecc98
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/www/interfaces.php
Original file line number Diff line number Diff line change
Expand Up @@ -2839,9 +2839,7 @@ function toggle_allcfg() {
$track6_prefix_id_hex = !empty($pconfig['track6-prefix-id--hex']) ? $pconfig['track6-prefix-id--hex']: sprintf("%x", $pconfig['track6-prefix-id']);?>
<input name="track6-prefix-id--hex" type="text" id="track6-prefix-id--hex" value="<?= $track6_prefix_id_hex ?>" />
<div class="hidden" data-for="help_for_track6-prefix-id">
<?= gettext("The value in this field is the (Delegated) IPv6 prefix id. This determines the configurable network ID based on the dynamic IPv6 connection"); ?>
<br />
<?= sprintf(gettext("Enter a hexadecimal value between %x and %x here, default value is 0."), 0, pow(2, calculate_ipv6_delegation_length($pconfig['track6-interface'])) - 1); ?>
<?= gettext('The value in this field is the delegated IPv6 prefix ID. This determines the configurable /64 network ID based on the dynamic IPv6 connection.') ?>
</div>
</td>
</tr>
Expand Down

0 comments on commit 91ecc98

Please sign in to comment.