mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-25 11:52:51 +01:00
Minor code review
This commit is contained in:
parent
daa62c3081
commit
4aae1bdf47
@ -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 */);
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user