Skip to content

Commit

Permalink
Fix deprecation warning
Browse files Browse the repository at this point in the history
- Issue #130.
- Related to #128.
  • Loading branch information
martignoni committed Jan 2, 2024
1 parent 9367173 commit 6739fdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/local/utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,8 @@ public static function is_private_ipv4_address($address) {
* if no clients connected.
*/
public static function get_connected_ip_adresses($interface) {
$iwoutput = shell_exec('iw dev ' . $interface . ' station dump');
$arpoutput = shell_exec('arp -ai ' . $interface);
$iwoutput = shell_exec('iw dev ' . $interface . ' station dump') || '';
$arpoutput = shell_exec('arp -ai ' . $interface) || '';

// Extract MAC and IP addresses.
preg_match_all('/Station\s+([a-fA-F0-9:]+)/', $iwoutput, $iwmatches);
Expand Down

0 comments on commit 6739fdc

Please sign in to comment.