Class: OnionPlugin

module:kadence/onion~ OnionPlugin

SOCKS5 proxy plugin, wraps HTTP* transports createRequest method

new OnionPlugin(node [, options])

Creates the transport wrapper for using a SOCKS5 proxy
Parameters:
Name Type Argument Description
node object
options object <optional>
Properties
Name Type Argument Description
dataDirectory string <optional>
Write hidden service data
virtualPort number <optional>
Virtual hidden service port
localMapping string <optional>
IP/Port string of target service
torrcEntries object <optional>
Additional torrc entries
passthroughLoggingEnabled boolean <optional>
Passthrough tor log
Source:

Methods


createClearAgent()

Returns a clear text agent instance to use for the provided target
Source:
Returns:
Type
Agent

createSecureAgent()

Returns an agent instance to use for the provided target
Source:
Returns:
Type
Agent