From ac67d90eaf1f4e8b6321708a5e06c02b18f3f811 Mon Sep 17 00:00:00 2001 From: Archeb Date: Tue, 18 Jun 2024 21:52:56 +0800 Subject: [PATCH] add secret ingredient --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index 68e350a..c8c7292 100644 --- a/index.js +++ b/index.js @@ -10,6 +10,9 @@ const https = require("https"); const axios = require("axios"); const port = process.env.PORT || 8080; const validApiKey = process.env.PASSWORD; +const tls = require("tls"); +tls.DEFAULT_MIN_VERSION = "TLSv1.3"; +tls.DEFAULT_MAX_VERSION = "TLSv1.3"; // import config.js try {