Recon network batch 2: fleet relay scan and UDP hints.
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
POST /api/v1/recon/relay-scan probes from the dashboard when reachable, otherwise dispatches recon_relay_scan to a same-/24 online agent. Agents reuse probePortsFn for TCP and optionally UDP 53/51820 with dns/wireguard Path Tracer tags.
This commit is contained in:
@@ -339,6 +339,8 @@ func ScanLocalSubnet(maxHosts int) string {
|
||||
// probePortsFn overrides TCP port probes in tests (nil = live dial).
|
||||
var probePortsFn func(host string, ports []int) []int
|
||||
|
||||
func SetProbePortsHook(fn func(host string, ports []int) []int) { probePortsFn = fn }
|
||||
|
||||
func probePorts(host string, ports []int) []int {
|
||||
if probePortsFn != nil {
|
||||
return probePortsFn(host, ports)
|
||||
|
||||
Reference in New Issue
Block a user