kadence/onion~ OnionPlugin

SOCKS5 proxy plugin, wraps HTTP* transports createRequest method

Constructor

new OnionPlugin(node, optionsopt)

Creates the transport wrapper for using a SOCKS5 proxy

Parameters:
NameTypeAttributesDescription
nodeobject
optionsobject<optional>
Properties
NameTypeAttributesDescription
dataDirectorystring<optional>

Write hidden service data

virtualPortnumber<optional>

Virtual hidden service port

localMappingstring<optional>

IP/Port string of target service

torrcEntriesobject<optional>

Additional torrc entries

passthroughLoggingEnabledboolean<optional>

Passthrough tor log

Methods

createClearAgent() → {Agent}

Returns a clear text agent instance to use for the provided target

Returns:
Type: 
Agent

createSecureAgent() → {Agent}

Returns an agent instance to use for the provided target

Returns:
Type: 
Agent