interfaces: correct comment

This commit is contained in:
Franco Fichtner 2018-11-12 08:52:12 +01:00
parent bf2473db79
commit eaf8791d8a

View File

@ -4046,7 +4046,7 @@ function get_interface_subnet($interface = 'wan')
if (does_interface_exist($realif)) {
$ifinfo = legacy_get_interface_addresses($realif);
if (isset($ifinfo['subnetbits'])) {
/* return first network found */
/* return first subnet size found */
return $ifinfo['subnetbits'];
}
}
@ -4069,7 +4069,7 @@ function get_interface_subnetv6($interface = 'wan')
if (does_interface_exist($realif)) {
$ifinfo = legacy_get_interface_addresses($realif);
if (isset($ifinfo['subnetbits6'])) {
/* return first network found */
/* return first subnet size found */
return $ifinfo['subnetbits6'];
}
}