From dd0b0e4633c31c02b208b401044feaf74bc144fd Mon Sep 17 00:00:00 2001 From: Fang-Pen Lin Date: Thu, 20 Nov 2025 20:05:49 -0800 Subject: [PATCH] No need to use https agent --- .../dns-made-easy/dns-made-easy-connection-fns.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/backend/src/services/app-connection/dns-made-easy/dns-made-easy-connection-fns.ts b/backend/src/services/app-connection/dns-made-easy/dns-made-easy-connection-fns.ts index 40bbe945b..80ee0bee4 100644 --- a/backend/src/services/app-connection/dns-made-easy/dns-made-easy-connection-fns.ts +++ b/backend/src/services/app-connection/dns-made-easy/dns-made-easy-connection-fns.ts @@ -1,13 +1,12 @@ import { AxiosError } from "axios"; +import { getConfig } from "@app/lib/config/env"; import { request } from "@app/lib/config/request"; import { crypto } from "@app/lib/crypto/cryptography"; import { BadRequestError } from "@app/lib/errors"; import { AppConnection } from "@app/services/app-connection/app-connection-enums"; import { IntegrationUrls } from "@app/services/integration-auth/integration-list"; -import https from "https"; -import { getConfig } from "@app/lib/config/env"; import { DNSMadeEasyConnectionMethod } from "./dns-made-easy-connection-enum"; import { TDNSMadeEasyConnection, @@ -100,10 +99,6 @@ export const validateDNSMadeEasyConnectionCredentials = async (config: TDNSMadeE try { const resp = await request.get(getDNSMadeEasyUrl("/V2.0/dns/managed/"), { - httpAgent: new https.Agent({ - minVersion: "TLSv1.2", - maxVersion: "TLSv1.2" - }), headers: { ...makeDNSMadeEasyAuthHeaders(apiKey, secretKey), Accept: "application/json"