mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 17:44:41 +00:00
interfaces: correct comment
This commit is contained in:
parent
bf2473db79
commit
eaf8791d8a
@ -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'];
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user