Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix compare on cleaned protocol

adilsonf9d8cbb9dbad
diff --git a/backend/src/services/external-migration/external-migration-fns/vault.ts b/backend/src/services/external-migration/external-migration-fns/vault.ts
index 373a71488b..0991eea805 100644
--- a/backend/src/services/external-migration/external-migration-fns/vault.ts
+++ b/backend/src/services/external-migration/external-migration-fns/vault.ts
@@ -299,7 +299,7 @@ const vaultFactory = (
const { protocol, hostname } = url;
const cleanedProtocol = protocol.slice(0, -1);
- const defaultPort = cleanedProtocol === "https:" ? 443 : 80;
+ const defaultPort = cleanedProtocol === "https" ? 443 : 80;
const targetPort = defaultPort;
data = await $gatewayProxyWrapper(