Skip to content
Snippets Groups Projects
Commit 5c735622 authored by henry's avatar henry Committed by richard
Browse files

fixup! fixup! Bug 40933: Add tor-launcher functionality

Bug 41333: Remove TorCheckService.
parent 552fb704
1 merge request!741New about:tor home page.
......@@ -777,19 +777,6 @@ class TorController {
return this.#getInfo(`ip-to-country/${ip}`);
}
/**
* Ask tor which ports it is listening to for SOCKS connections.
*
* @returns {Promise<string[]>} An array of addresses. It might be empty
* (e.g., when DisableNetwork is set)
*/
async getSocksListeners() {
const listeners = await this.#getInfo("net/listeners/socks");
return Array.from(listeners.matchAll(/\s*("(?:[^"\\]|\\.)*"|\S+)\s*/g), m =>
TorParsers.unescapeString(m[1])
);
}
// Configuration
/**
......
......@@ -189,13 +189,6 @@ export class TorProvider {
await conn.newnym();
}
// Ask tor which ports it is listening to for SOCKS connections.
// At the moment this is used only in TorCheckService.
async getSocksListeners() {
const conn = await this.#getConnection();
return conn.getSocksListeners();
}
async getBridges() {
const conn = await this.#getConnection();
// Ideally, we would not need this function, because we should be the one
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment