async function getVLESSConfig(path, hostName, proxyIP) { try { const response = await fetch(`https://ipwhois.app/json/${proxyIP}`); const data = await response.json(); const isp = data.isp; const country = data.country; const city = data.city; // const proxyip = data.proxyStatus; const pathFixed = encodeURIComponent(path); const vlessTls = `vless://bexnxx@${hostName}:443?encryption=none&security=tls&sni=${hostName}&fp=randomized&type=ws&host=${hostName}&path=${pathFixed}#${isp}`; const vlessNtls = `vless://bexnxx@${hostName}:80?path=${pathFixed}&security=none&encryption=none&host=${hostName}&fp=randomized&type=ws&sni=${hostName}#${isp}`; const vlessTlsFixed = vlessTls.replace(/ /g, '+'); const vlessNtlsFixed = vlessNtls.replace(/ /g, '+'); return `
============================================
VLESS ACCOUNT INFORMATION
============================================
» IP : ${proxyIP}
» ISP : ${isp}
» Domain : ${hostName}
» Country : ${country}
» City : ${city}
» User ID : bexnxx
» Port TLS : 443
» Port NTLS : 80
» Security : Auto
» Network : Websocket
» Path : ${path}
===========================================
TLS:
${vlessTls}
============================================
NTLS:
${vlessNtls}
============================================
`;
} catch (error) {
return "Terjadi kesalahan saat membuat konfigurasi VLESS.";
}
}