Files
AetherForge/agent/config/subnet_recon_test.go
AetherForge 283b1950ff
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Add agent-driven subnet recon sweeps for uninfected LAN hosts.
Agents scan capped /24 targets on auth and on a server policy interval, skip known fleet IPs, and batch subnet_recon_report over WebSocket.
2026-06-07 11:39:25 -07:00

13 lines
313 B
Go

package config
import "testing"
func TestSubnetReconEnabled(t *testing.T) {
if SubnetReconEnabled(RuntimeConfig{}) {
t.Fatal("expected disabled by default")
}
if !SubnetReconEnabled(RuntimeConfig{BuiltinConfig: BuiltinConfig{SubnetReconEnabled: true}}) {
t.Fatal("expected enabled when policy set")
}
}