* fix(desktop): restore direct LAN connections Desktop 0.3.0 routed remote WebSockets through the Electron main process, causing previously working macOS LAN connections to fail with EHOSTUNREACH. Revert custom direct headers and restore the renderer WebSocket path used before the regression. * fix(app): replace host connections by identity Keep one connection per stable ID when TLS or password settings change. This preserves the current-main upsert invariant while the custom-header rollback removes the unrelated transport feature.
13 lines
426 B
TypeScript
13 lines
426 B
TypeScript
import { z } from "zod";
|
|
|
|
export const DirectTcpHostConnectionSchema = z.object({
|
|
id: z.string(),
|
|
type: z.literal("directTcp"),
|
|
endpoint: z.string(),
|
|
useTls: z.boolean().optional().default(false),
|
|
password: z.string().optional(),
|
|
});
|
|
|
|
export type DirectTcpHostConnection = z.input<typeof DirectTcpHostConnectionSchema>;
|
|
export type NormalizedDirectTcpHostConnection = z.output<typeof DirectTcpHostConnectionSchema>;
|