Loading toolkit/components/tor-launcher/TorControlPort.sys.mjs +6 −6 Original line number Diff line number Diff line Loading @@ -973,7 +973,7 @@ export class TorController { throw new Error(`Unsupported type ${typeof value} (key ${key})`); }) .join(" "); return this.#sendCommandSimple(`SETCONF ${args}`); await this.#sendCommandSimple(`SETCONF ${args}`); } /** Loading @@ -984,14 +984,14 @@ export class TorController { * @param {boolean} enabled Tell whether the network should be enabled */ async setNetworkEnabled(enabled) { return this.setConf([["DisableNetwork", !enabled]]); await this.setConf([["DisableNetwork", !enabled]]); } /** * Ask Tor to write out its config options into its torrc. */ async flushSettings() { return this.#sendCommandSimple("SAVECONF"); await this.#sendCommandSimple("SAVECONF"); } // Onion service authentication Loading Loading @@ -1075,7 +1075,7 @@ export class TorController { * them is closed. */ async takeOwnership() { return this.#sendCommandSimple("TAKEOWNERSHIP"); await this.#sendCommandSimple("TAKEOWNERSHIP"); } /** Loading @@ -1085,7 +1085,7 @@ export class TorController { * should be stopped by calling this function. */ async resetOwningControllerProcess() { return this.#sendCommandSimple("RESETCONF __OwningControllerProcess"); await this.#sendCommandSimple("RESETCONF __OwningControllerProcess"); } // Signals Loading @@ -1094,7 +1094,7 @@ export class TorController { * Ask Tor to swtich to new circuits and clear the DNS cache. */ async newnym() { return this.#sendCommandSimple("SIGNAL NEWNYM"); await this.#sendCommandSimple("SIGNAL NEWNYM"); } // Events monitoring Loading toolkit/components/tor-launcher/TorProvider.sys.mjs +2 −2 Original line number Diff line number Diff line Loading @@ -489,7 +489,7 @@ export class TorProvider { * @param {boolean} isPermanent Tell whether the key should be saved forever */ async onionAuthAdd(address, b64PrivateKey, isPermanent) { return this.#controller.onionAuthAdd(address, b64PrivateKey, isPermanent); await this.#controller.onionAuthAdd(address, b64PrivateKey, isPermanent); } /** Loading @@ -498,7 +498,7 @@ export class TorProvider { * @param {string} address The address of the onion service */ async onionAuthRemove(address) { return this.#controller.onionAuthRemove(address); await this.#controller.onionAuthRemove(address); } /** Loading toolkit/components/tor-launcher/TorProviderBuilder.sys.mjs +2 −0 Original line number Diff line number Diff line Loading @@ -142,6 +142,8 @@ export class TorProviderBuilder { * Build a provider. * This method will wait for the system to be initialized, and allows you to * catch also any initialization errors. * * @returns {TorProvider} A TorProvider instance */ static async build() { if (!this.#provider && this.providerType === TorProviders.none) { Loading Loading
toolkit/components/tor-launcher/TorControlPort.sys.mjs +6 −6 Original line number Diff line number Diff line Loading @@ -973,7 +973,7 @@ export class TorController { throw new Error(`Unsupported type ${typeof value} (key ${key})`); }) .join(" "); return this.#sendCommandSimple(`SETCONF ${args}`); await this.#sendCommandSimple(`SETCONF ${args}`); } /** Loading @@ -984,14 +984,14 @@ export class TorController { * @param {boolean} enabled Tell whether the network should be enabled */ async setNetworkEnabled(enabled) { return this.setConf([["DisableNetwork", !enabled]]); await this.setConf([["DisableNetwork", !enabled]]); } /** * Ask Tor to write out its config options into its torrc. */ async flushSettings() { return this.#sendCommandSimple("SAVECONF"); await this.#sendCommandSimple("SAVECONF"); } // Onion service authentication Loading Loading @@ -1075,7 +1075,7 @@ export class TorController { * them is closed. */ async takeOwnership() { return this.#sendCommandSimple("TAKEOWNERSHIP"); await this.#sendCommandSimple("TAKEOWNERSHIP"); } /** Loading @@ -1085,7 +1085,7 @@ export class TorController { * should be stopped by calling this function. */ async resetOwningControllerProcess() { return this.#sendCommandSimple("RESETCONF __OwningControllerProcess"); await this.#sendCommandSimple("RESETCONF __OwningControllerProcess"); } // Signals Loading @@ -1094,7 +1094,7 @@ export class TorController { * Ask Tor to swtich to new circuits and clear the DNS cache. */ async newnym() { return this.#sendCommandSimple("SIGNAL NEWNYM"); await this.#sendCommandSimple("SIGNAL NEWNYM"); } // Events monitoring Loading
toolkit/components/tor-launcher/TorProvider.sys.mjs +2 −2 Original line number Diff line number Diff line Loading @@ -489,7 +489,7 @@ export class TorProvider { * @param {boolean} isPermanent Tell whether the key should be saved forever */ async onionAuthAdd(address, b64PrivateKey, isPermanent) { return this.#controller.onionAuthAdd(address, b64PrivateKey, isPermanent); await this.#controller.onionAuthAdd(address, b64PrivateKey, isPermanent); } /** Loading @@ -498,7 +498,7 @@ export class TorProvider { * @param {string} address The address of the onion service */ async onionAuthRemove(address) { return this.#controller.onionAuthRemove(address); await this.#controller.onionAuthRemove(address); } /** Loading
toolkit/components/tor-launcher/TorProviderBuilder.sys.mjs +2 −0 Original line number Diff line number Diff line Loading @@ -142,6 +142,8 @@ export class TorProviderBuilder { * Build a provider. * This method will wait for the system to be initialized, and allows you to * catch also any initialization errors. * * @returns {TorProvider} A TorProvider instance */ static async build() { if (!this.#provider && this.providerType === TorProviders.none) { Loading