fix: uuid 只辅助判断, 不直接过滤

This commit is contained in:
xream
2025-02-20 22:52:35 +08:00
parent fda1252d0e
commit a23e2ffcd6
3 changed files with 11 additions and 5 deletions

View File

@@ -81,9 +81,9 @@ function parse(raw) {
if (['vless', 'vmess'].includes(proxy.type)) {
const isProxyUUIDValid = isValidUUID(proxy.uuid);
if (!isProxyUUIDValid) {
$.error(`UUID is invalid: ${proxy.name} ${proxy.uuid}`);
$.error(`UUID may be invalid: ${proxy.name} ${proxy.uuid}`);
}
return isProxyUUIDValid;
// return isProxyUUIDValid;
}
return true;
});
@@ -235,8 +235,8 @@ function produce(proxies, targetPlatform, type, opts = {}) {
if (['vless', 'vmess'].includes(proxy.type)) {
const isProxyUUIDValid = isValidUUID(proxy.uuid);
if (!isProxyUUIDValid)
$.error(`UUID is invalid: ${proxy.name} ${proxy.uuid}`);
return isProxyUUIDValid;
$.error(`UUID may be invalid: ${proxy.name} ${proxy.uuid}`);
// return isProxyUUIDValid;
}
return true;
@@ -326,6 +326,7 @@ export const ProxyUtils = {
MMDB,
Gist,
download,
isValidUUID,
};
function tryParse(parser, line) {