Skip to content

Commit 8db8e87

Browse files
authored
Merge pull request #5 from EEvanescence
Refactore Harmony
2 parents 41ba048 + ccc2b86 commit 8db8e87

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

harmony.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* Last update: Tuesday, 31 December 2024, 11:59 PM
3-
* - Built a v2ray subscription link with the ability to automatically add CF clean IPs to your VLESS configurations.
3+
* - The code dynamically creates VLESS configuration with clean IPs and returns subscription link in a base64 encoded format .
44
* - Replace these lines with your uuid and hostname, UUID in line (12) - Hostname in lines (928), (953) and (981) and also SNI in (931), (956) and (984) . Tamam ;)
55
* We are all REvil
66
*/
@@ -889,8 +889,8 @@ async function handleRequest(request) {
889889
const configsList = [];
890890

891891
const shuffledVLESS = shuffleArray(Array.from(new Set(IP1)));
892-
const ipv4urlRE1 = 'https://raw.githubusercontent.com/NiREvil/Harmony/refs/heads/main/cf-clean.json'; //Second source of Cloudflare clean IP addresses.
893-
const ipv4urlRE2 = 'https://strawberry.victoriacross.ir'; //3rd source of Cloudflare clean IP addresses.
892+
const ipv4urlRE1 = 'https://raw.githubusercontent.com/NiREvil/Harmony/refs/heads/main/cf-clean.json'; // 2nd source of Cloudflare clean IP addresses.
893+
const ipv4urlRE2 = 'https://strawberry.victoriacross.ir'; // 3rd source of Cloudflare clean IP addresses.
894894

895895
const [ipv4listRE1, ipv4listRE2] = await Promise.all([
896896
fetch(ipv4urlRE1),
@@ -925,7 +925,7 @@ async function handleRequest(request) {
925925
security: config.tls,
926926
encryption: config.type,
927927
alpn: 'h3', // Preferred alpn type
928-
host: 'your-vless.pages.dev', // Set your Host here -1
928+
host: 'your-vless.pages.dev', // Set your hostname here -1
929929
fp: randomfp,
930930
type: config.net,
931931
sni: 'YOUR-VlESS.PAGES.DEV', // Set your SNI here -1
@@ -950,7 +950,7 @@ async function handleRequest(request) {
950950
security: config.tls,
951951
encryption: config.type,
952952
alpn: 'http/1.1', // Preferred alpn type
953-
host: 'your-vless.pages.dev', // Set your Host here -2
953+
host: 'your-vless.pages.dev', // Set your hostname here -2
954954
fp: randomfp,
955955
type: config.net,
956956
sni: 'YOUR-VlESS.PAGES.DEV', // Set your SNI here -2
@@ -978,7 +978,7 @@ async function handleRequest(request) {
978978
security: config.tls,
979979
encryption: config.type,
980980
alpn: 'http/1.1', // Preferred alpn type
981-
host: 'your-vless.pages.dev', // Set your Host here -3
981+
host: 'your-vless.pages.dev', // Set your hostname here -3
982982
fp: randomfp,
983983
type: config.net,
984984
sni: 'YOUR-VlESS.PAGES.DEV', // Set your SNI here -3

0 commit comments

Comments
 (0)