1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-22 02:12:44 +01:00

Minor code review

This commit is contained in:
Raymond Hill 2024-10-07 11:56:22 -04:00
parent daa62c3081
commit 4aae1bdf47
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -37,7 +37,7 @@ const isResolvedObject = o => o instanceof Object &&
o instanceof Promise === false;
const reIPv4 = /^\d+\.\d+\.\d+\.\d+$/
const skipDNS = proxyInfo =>
proxyInfo?.proxyDNS || proxyInfo?.type?.startsWith('http');
proxyInfo && (proxyInfo.proxyDNS || proxyInfo.type?.charCodeAt(0) === 0x68 /* h */);
/******************************************************************************/