Restore macOS direct LAN connections (#3071)
* 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.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { expect, test } from "../../app/e2e/support/fixtures";
|
||||
import type { Page } from "@playwright/test";
|
||||
import {
|
||||
startIsolatedHostDaemon,
|
||||
type IsolatedHostDaemon,
|
||||
@@ -19,12 +18,11 @@ import {
|
||||
openPairDeviceFromHome,
|
||||
openRelaySecurityDocs,
|
||||
observePairingOfferRequests,
|
||||
preparePairingHost,
|
||||
prepareLocalPairingHost,
|
||||
reloadAndOpenPairDevice,
|
||||
retryRelayAndExpectFailure,
|
||||
switchPairDeviceToHost,
|
||||
} from "../../app/e2e/support/helpers/pair-device";
|
||||
import { installDesktopRuntime } from "./support/runtime";
|
||||
|
||||
interface RelayConfigDaemonClient {
|
||||
close(): Promise<void>;
|
||||
@@ -32,20 +30,6 @@ interface RelayConfigDaemonClient {
|
||||
patchDaemonConfig(config: { relay: { enabled: boolean } }): Promise<unknown>;
|
||||
}
|
||||
|
||||
async function prepareLocalPairingHost(
|
||||
page: Page,
|
||||
daemon: Parameters<typeof preparePairingHost>[1],
|
||||
additionalHosts: Parameters<typeof preparePairingHost>[2] = [],
|
||||
): Promise<void> {
|
||||
const endpoint = "port" in daemon ? `127.0.0.1:${daemon.port}` : daemon.endpoint;
|
||||
await installDesktopRuntime(page, {
|
||||
serverId: daemon.serverId,
|
||||
daemonListen: endpoint,
|
||||
manageBuiltInDaemon: false,
|
||||
});
|
||||
await preparePairingHost(page, daemon, additionalHosts);
|
||||
}
|
||||
|
||||
test.describe("local device relay pairing", () => {
|
||||
let relayOffDaemon: IsolatedHostDaemon;
|
||||
let relayEnableDaemon: IsolatedHostDaemon;
|
||||
|
||||
Reference in New Issue
Block a user