فهرست منبع

support IPv6 address in Link

Co-Authored-By: Alireza Ahmadi <[email protected]>
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;