Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2024-03-12 22:32:02 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2024-03-12 22:32:02 +0300
commite43601ac08900705e5b095f7a059ee8483151226 (patch)
tree5e2f7b91d249fb40db3ea97d8678c4f71fab3524 /web/assets/js
parentbc29d7a252379389cafd93e2bc83fa71297ef37c (diff)
support IPv6 address in Link
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/assets/js')
-rw-r--r--web/assets/js/model/outbound.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/assets/js/model/outbound.js b/web/assets/js/model/outbound.js
index 46390054..c50dc240 100644
--- a/web/assets/js/model/outbound.js
+++ b/web/assets/js/model/outbound.js
@@ -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;