Skip to content

Commit

Permalink
support IPv6 address in Link
Browse files Browse the repository at this point in the history
Co-Authored-By: Alireza Ahmadi <[email protected]>
  • Loading branch information
MHSanaei and alireza0 committed Mar 12, 2024
1 parent bc29d7a commit e43601a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/assets/js/model/outbound.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e43601a

Please sign in to comment.