mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
Give the ARP scanner code defaults and make its config section optional
Add an ArpScanner Default impl (30m/1m/10m, enabled) and mark the arp_scanner field with serde default, so the [arp_scanner] section can now be omitted entirely and fall back to code defaults — matching the pattern used by the SNMP scanner. Previously these three durations were mandatory and the backend would not start without them. Reconcile the documentation to the canonical 30m/1m/10m: fix the README NixOS example (was 15m/20m/30m) and options table (was 15m), and note that the section is optional in both the README and sample TOML. The NixOS module and sample TOML already used these values. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
b283699b3c
commit
38158a4ffc
@@ -7,7 +7,7 @@ path = "/db/oott.db" # Database path. For the Docker image this must be "/db/oot
|
||||
[log]
|
||||
level = "info" # off, error, warn, info, debug, trace
|
||||
|
||||
[arp_scanner]
|
||||
[arp_scanner] # Optional: omit this whole section to use the defaults shown below
|
||||
enabled=true # Set to false to disable the ARP scanner
|
||||
wait_between_scans="30m" # Wait time between scans. This does not include the scan time
|
||||
sender_timeout="1m" # If the ARP sender process takes longer than this it will be stopped (for a class C network - 254 IPs - it should take less than a minute)
|
||||
|
||||
Reference in New Issue
Block a user