Skip to content

Commit

Permalink
Update clash_link URL avoid ddos in _worker.js
Browse files Browse the repository at this point in the history
  • Loading branch information
3Kmfi6HP committed Jan 27, 2024
1 parent d6653fe commit 2adaea6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions _worker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// <!--GAMFC-->version base on commit 43fad05dcdae3b723c53c226f8181fc5bd47223e, time is 2023-06-22 15:20:02 UTC<!--GAMFC-END-->.
// @ts-ignore
import { connect } from 'cloudflare:sockets';

Expand Down Expand Up @@ -726,7 +725,7 @@ function getVLESSConfig(userIDs, hostName) {
let output = [];
let header = [];
const sublink = `https://${hostName}/sub/${userIDArray[0]}?format=clash`
const clash_link = `https://subconverter.do.xn--b6gac.eu.org/sub?target=clash&url=${encodeURIComponent(sublink)}&insert=false&emoji=true&list=false&tfo=false&scv=true&fdn=false&sort=false&new_name=true`;
const clash_link = `https://api.v1.mk/sub?target=clash&url=${encodeURIComponent(sublink)}&insert=false&emoji=true&list=false&tfo=false&scv=true&fdn=false&sort=false&new_name=true`;
header.push(`\n<p align="center"><img src="https://cloudflare-ipfs.com/ipfs/bafybeigd6i5aavwpr6wvnwuyayklq3omonggta4x2q7kpmgafj357nkcky" alt="图片描述" style="margin-bottom: -50px;">`);
header.push(`\n<b style=" font-size: 15px;" >Welcome! This function generates configuration for VLESS protocol. If you found this useful, please check our GitHub project for more:</b>\n`);
header.push(`<b style=" font-size: 15px;" >欢迎!这是生成 VLESS 协议的配置。如果您发现这个项目很好用,请查看我们的 GitHub 项目给我一个star:</b>\n`);
Expand Down

0 comments on commit 2adaea6

Please sign in to comment.