Closed wiz closed 7 years ago
// bitmask calculation port = 0 if (blockAds) port += 1 if (blockMalware) port += 2 if (useCypherplay) port += 4 if (useTLS) port += 512 return port // examples: 1 - block ads 2 - block malware 3 - block ads + block malware 4 - cypherplay 5 - block ads + cypherplay 6 - block malware + cypherplay 7 - block ads + block malware + cypherplay 513 - block ads + TLS 514 - block malware + TLS 515 - block ads + block malware + TLS 516 - cypherplay + TLS 517 - block ads + cypherplay + TLS 518 - block malware + cypherplay + TLS 519 - block ads + block malware + cypherplay + TLS