SocksConnectivityChecker

SOCKS reachability checks. Remote-DNS probes use InetSocketAddress.createUnresolved so the hostname is resolved by Tor, not on-device DNS.

Functions

Link copied to clipboard
suspend fun checkSocksWithRemoteDns(proxyHost: String, proxyPort: Int, username: String? = null, password: String? = null, dnsHost: String = InvizibleConstants.DNS_PROBE_HOST, dnsPort: Int = InvizibleConstants.DNS_PROBE_PORT, timeoutMs: Int = InvizibleConstants.CONNECT_TIMEOUT_MS, remoteDns: Boolean = true): SocksCheckResult
Link copied to clipboard
suspend fun checkTcpOnly(host: String, port: Int, timeoutMs: Long): Boolean