Skip to content

Commit

Permalink
fix: php error when using DHCP (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkaser authored Oct 15, 2024
1 parent c949996 commit ce8fa76
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
if (array_key_exists(('IPADDR'), $ips)) {
$route_table = run_command("ip route list table 52", false, false);

$ipaddr = is_array($ips['IPADDR']) ? $ips['IPADDR'] : array($ips['IPADDR']);

foreach ($ips['IPADDR'] as $ip) {
foreach ($route_table as $route) {
$net = explode(' ', $route)[0];
Expand Down

0 comments on commit ce8fa76

Please sign in to comment.