Fix import

This commit is contained in:
Owen
2026-05-29 15:38:37 -07:00
parent b071fa2c9f
commit 0ab1854125
11 changed files with 19 additions and 19 deletions

View File

@@ -23,6 +23,7 @@ import { fromError } from "zod-validation-error";
import logger from "@server/logger";
import { decrypt } from "@server/lib/crypto";
import config from "@server/lib/config";
import { GetBrowserTargetResponse } from "@server/routers/browserGatewayTarget";
const getBrowserTargetSchema = z
.object({
@@ -30,17 +31,6 @@ const getBrowserTargetSchema = z
})
.strict();
export type GetBrowserTargetResponse = {
ip: string;
port: number;
authToken: string;
orgId: string;
resourceId: number;
niceId: string;
pamMode: "passthrough" | "push" | null;
authDaemonMode: "site" | "remote" | "native" | null;
};
export async function getBrowserTarget(
req: Request,
res: Response,

View File

@@ -546,7 +546,7 @@ export async function signSshKey(
if (resource.alias && resource.alias != "") {
sshHost = resource.alias;
} else {
sshHost = resource.destination || ""; // TODO: IF WE HAVE THE NATIVE SSH MODE WHAT SHOULD WE DO HERE?
sshHost = resource.destination || "";
}
} else if (resource.authDaemonMode === "native") {
if (siteIds.length > 1) {