Add startup management functionality to the agent. Implement API endpoints for enabling and disabling startup, and update the web interface to reflect the current startup state.
This commit is contained in:
+10
-8
@@ -6,14 +6,16 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
Version = "1.0.0"
|
||||
DefaultAddr = "0.0.0.0:5032"
|
||||
MutexName = "LocalManagementAgent_Mutex"
|
||||
RequestBodyMax = 1 << 20
|
||||
MaxListEntries = 10000
|
||||
MaxImageQuality = 100
|
||||
DefaultExecTO = 30
|
||||
MaxExecTO = 120
|
||||
Version = "1.0.0"
|
||||
DefaultAddr = "0.0.0.0:5032"
|
||||
MutexName = "LocalManagementAgent_Mutex"
|
||||
RequestBodyMax = 1 << 20
|
||||
MaxListEntries = 10000
|
||||
MaxImageQuality = 100
|
||||
DefaultExecTO = 30
|
||||
MaxExecTO = 120
|
||||
StartupValueName = "LocalManagementAgent"
|
||||
StartupRunKey = `Software\Microsoft\Windows\CurrentVersion\Run`
|
||||
)
|
||||
|
||||
func EnvOr(name, fallback string) string {
|
||||
|
||||
Reference in New Issue
Block a user