fix: index.js

This commit is contained in:
Den Piligrim
2026-01-08 00:35:47 +03:00
parent fed99d8e5c
commit 6f02e501e6
+5 -1
View File
@@ -160,6 +160,7 @@ EOF
cat > node/index.js <<'EOF'
import express from "express";
import axios from "axios";
import https from "https";
const app = express();
@@ -167,11 +168,14 @@ const {
ORIGIN_SUB_URL,
LOCAL_HOST
} = process.env;
const agent = new https.Agent({
rejectUnauthorized: false
});
app.get("/bus/:token", async (req, res) => {
try {
const url = ORIGIN_SUB_URL;
const r = await axios.get(url, { timeout: 15000 });
const r = await axios.get(url, { timeout: 15000, httpsAgent: agent });
let data = r.data;
// vmess base64