mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-10-20 23:55:20 +08:00
support IPv6 address in Link
Co-Authored-By: Alireza Ahmadi <[email protected]>
This commit is contained in:
co-authored by
Alireza Ahmadi
parent
bc29d7a252
commit
e43601ac08
@@ -708,7 +708,7 @@ class Outbound extends CommonClass {
|
||||
let data = link.split('?');
|
||||
if(data.length != 2) return null;
|
||||
|
||||
const regex = /([^@]+):\/\/([^@]+)@([^:]+):(\d+)\?(.*)$/;
|
||||
const regex = /([^@]+):\/\/([^@]+)@(.+):(\d+)\?(.*)$/;
|
||||
const match = link.match(regex);
|
||||
|
||||
if (!match) return null;
|
||||
|
||||
Reference in New Issue
Block a user