UI improvements

This commit is contained in:
KingKDot
2026-05-30 22:44:55 -05:00
parent 5933297686
commit 2a90053eee
24 changed files with 1498 additions and 420 deletions
+5 -2
View File
@@ -32,7 +32,6 @@ import (
"nhooyr.io/websocket"
)
func runClient(cfg config.Config) {
//garble:controlflow block_splits=10 junk_jumps=10 flatten_passes=2
baseBackoff := computeBaseBackoff()
@@ -294,7 +293,6 @@ func refreshServerURLsFromRaw(cfg *config.Config) bool {
return true
}
func createHTTPTransport(cfg config.Config) *http.Transport {
tlsConfig := &tls.Config{
InsecureSkipVerify: cfg.TLSInsecureSkipVerify,
@@ -608,6 +606,9 @@ func runSession(ctx context.Context, cancel context.CancelFunc, conn *websocket.
if osVal == "" {
osVal = runtime.GOOS
}
if prettyOS := strings.TrimSpace(sysinfo.OSName()); prettyOS != "" {
osVal = prettyOS
}
archVal := strings.TrimSpace(cfg.Arch)
if archVal == "" {
@@ -636,6 +637,8 @@ func runSession(ctx context.Context, cancel context.CancelFunc, conn *websocket.
hello.CPU = hw.CPU
hello.GPU = hw.GPU
hello.RAM = hw.RAM
hello.BatteryPercent = hw.BatteryPercent
hello.BatteryCharging = hw.BatteryCharging
hello.IsAdmin = sysinfo.IsAdmin()
hello.Elevation = sysinfo.Elevation()
hello.Permissions = sysinfo.DarwinPermissions()