Merge pull request #15 from SetoKaiba/master

fix the UUID match for upper case
This commit is contained in:
Larvan2 2024-10-15 11:42:05 +08:00 committed by GitHub
commit bef6cbfbd1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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