mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 01:24:38 +00:00
system: kill this comment annotating code that does not reall exist anymore
This commit is contained in:
parent
0f5c35940d
commit
9c0b50aa63
@ -166,15 +166,6 @@ function dpinger_configure_do($verbose = false, $gwname_map = null)
|
||||
|
||||
$gwifip = null;
|
||||
|
||||
/*
|
||||
* Interface IP is needed since dpinger will bind a socket to it.
|
||||
* However the config GUI should already have checked this and when
|
||||
* PPPoE is used the IP address is set to "dynamic". So using
|
||||
* is_ipaddrv4() or is_ipaddrv6() to identify packet type would be
|
||||
* wrong, especially as further checks (that can cope with the
|
||||
* "dynamic" case) are present inside the if block. So using
|
||||
* $gateway['ipprotocol'] is the better option.
|
||||
*/
|
||||
if ($gateway['ipprotocol'] == 'inet') {
|
||||
if (is_ipaddrv4($gateway['gateway'])) {
|
||||
foreach (interfaces_addresses($gateway['interface'], false, $ifconfig_details) as $addr) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user