Skip to content

Commit bef6cbf

Browse files
authored
Merge pull request #15 from SetoKaiba/master
fix the UUID match for upper case
2 parents f51dad6 + 865ab56 commit bef6cbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parser/subparser.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1511,7 +1511,7 @@ void explodeStdVless(std::string vless, Proxy &node)
15111511
remarks = urlDecode(vless.substr(pos + 1));
15121512
vless.erase(pos);
15131513
}
1514-
const std::string stdvless_matcher = R"(^([\da-f]{4}(?:[\da-f]{4}-){4}[\da-f]{12})@\[?([\d\-a-zA-Z:.]+)\]?:(\d+)(?:\/?\?(.*))?$)";
1514+
const std::string stdvless_matcher = R"(^([\da-fA-F]{4}(?:[\da-fA-F]{4}-){4}[\da-fA-F]{12})@\[?([\d\-a-zA-Z:.]+)\]?:(\d+)(?:\/?\?(.*))?$)";
15151515
if(regGetMatch(vless, stdvless_matcher, 5, 0, &id, &add, &port, &addition))
15161516
return;
15171517

0 commit comments

Comments
 (0)