Skip to content

Commit

Permalink
Fix stupid typos in previous bug fix
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 52df0b4 commit fa932d6
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 fa932d6

Please sign in to comment.