diff --git a/src/www/interfaces.php b/src/www/interfaces.php
index a7574f226..565eb47db 100644
--- a/src/www/interfaces.php
+++ b/src/www/interfaces.php
@@ -1432,6 +1432,27 @@ if (isset($a_interfaces[$if]['wireless'])) {
// Find all possible media options for the interface
$mediaopts_list = legacy_interface_details($pconfig['if'])['supported_media'] ?? [];
+$types4 = [
+ 'none' => gettext('None'),
+ 'staticv4' => gettext('Static IPv4'),
+ 'dhcp' => gettext('DHCP'),
+ 'ppp' => gettext('PPP'),
+ 'pppoe' => gettext('PPPoE'),
+ 'pptp' => gettext('PPTP'),
+ 'l2tp' => gettext('L2TP'),
+];
+
+$types6 = [
+ 'none' => gettext('None'),
+ 'staticv6' => gettext('Static IPv6'),
+ 'dhcp6' => gettext('DHCPv6'),
+ 'pppoev6' => gettext('PPPoEv6'),
+ 'slaac' => gettext('SLAAC'),
+ '6rd' => gettext('6rd Tunnel'),
+ '6to4' => gettext('6to4 Tunnel'),
+ 'track6' => gettext('Track Interface')
+];
+
include("head.inc");
?>
@@ -1858,13 +1879,10 @@ include("head.inc");
| =gettext("IPv4 Configuration Type"); ?> |
- |
@@ -1872,12 +1890,9 @@ include("head.inc");
=gettext("IPv6 Configuration Type"); ?> |
- gettext("None"), "staticv6" => gettext("Static IPv6"), "dhcp6" => gettext("DHCPv6"), "pppoev6" => gettext("PPPoEv6"), "slaac" => gettext("SLAAC"), "6rd" => gettext("6rd Tunnel"), "6to4" => gettext("6to4 Tunnel"), "track6" => gettext("Track Interface"));
- foreach ($types6 as $key => $opt):?>
-
-
+ $opt): ?>
+
+
|
@@ -2311,23 +2326,9 @@ include("head.inc");
- | =gettext("Modem Port"); ?> |
+ = gettext('Modem Port') ?> |
-
-
-
-
-
+ = $pconfig['ports'] ?>
|
@@ -2947,7 +2948,7 @@ include("head.inc");
$ifcfg):
- switch ($config['interfaces'][$iface]['ipaddrv6']) {
+ switch ($config['interfaces'][$iface]['ipaddrv6'] ?? 'none') {
case '6rd':
case '6to4':
case 'dhcp6':