Skip to content
This repository was archived by the owner on Jan 27, 2024. It is now read-only.

stops spammings me #13

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/Presence/Scanner.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ public function scan()

$command = 'arp-scan';

// since 1024 hosts are in a /20, which is the CIDR prefix at denhac,
// we approximate that 1ms of wait = 1 second to complete the ARP sweep.
// yes this is a magic number and bad manners.
// set sweep to take about 20 seconds
$command = "{$command} --interval=20";

// test if we specified interface first
if (isset($this->interface)) {
$command = "{$command} --interface={$this->interfaces}";
Expand Down