Skip to content

Commit

Permalink
fix: wrong split of password
Browse files Browse the repository at this point in the history
  • Loading branch information
7Sageer committed Sep 17, 2024
1 parent 434896e commit 555c604
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ProxyParsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ export class ProxyParser {
let tag = parts[1];

let [base64, serverPart] = mainPart.split('@');
let [method, password] = atob(base64).split(':');
let decodedParts = atob(base64).split(':');
let method = decodedParts[0];
let password = decodedParts.slice(1).join(':');

// Match IPv6 address
let match = serverPart.match(/\[([^\]]+)\]:(\d+)/);
Expand Down

0 comments on commit 555c604

Please sign in to comment.