agent v0.3.15: mode proxy auto/manuel, correction auto-update et conservation systray, animation UI update

This commit is contained in:
EduBox Dev
2026-06-28 19:53:19 +00:00
parent 33d89c66c0
commit adab165274
13 changed files with 444 additions and 55 deletions
+12 -2
View File
@@ -14,8 +14,18 @@ type AgentConfig struct {
Server string `json:"server"`
HeadscaleURL string `json:"headscale_url"`
HeadscaleAuthKey string `json:"headscale_auth_key"`
NodeID string `json:"node_id"`
DataDir string `json:"data_dir"`
NodeID string `json:"node_id"`
DataDir string `json:"data_dir"`
// ProxyURL is an optional HTTP(S) proxy used for all outbound agent traffic
// (WebSocket, update checks, downloads).
ProxyURL string `json:"proxy_url,omitempty"`
// ProxyMode controls how the proxy is used:
// - "disabled" : never use the proxy.
// - "auto" : the agent tries direct connections first and falls back to
// the proxy after a few failures (useful when moving between
// home network and school network).
// - "enabled" : always use the proxy.
ProxyMode string `json:"proxy_mode,omitempty"`
}
const configFileName = "studioE5-config.json"