浏览代码

support IPv6 address in Link

Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
MHSanaei 1 年之前
父节点
当前提交
e43601ac08
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      web/assets/js/model/outbound.js

+ 1 - 1
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;