kadence/traverse~ ReverseTunnelStrategy

Uses a secure reverse HTTPS tunnel via the Diglet package to traverse NAT. This requires a running Diglet server on the internet. By default, this plugin will use a test server operated by bookchin, but this may not be reliable or available. It is highly recommended to deploy your own Diglet server and configure your nodes to use them instead. There is detailed documentation on deploying a Diglet server at the project page.

Constructor

new ReverseTunnelStrategy(optionsopt)

Parameters:
NameTypeAttributesDescription
optionsobject<optional>
Properties
NameTypeAttributesDefaultDescription
remoteAddressstring<optional>
tunnel.bookch.in

Diglet server address

remotePortnumber<optional>
8443

Diglet server port

privateKeybuffer<optional>

SECP256K1 private key if using spartacus

secureLocalConnectionboolean<optional>
false

Set to true if using HTTPSTransport

verboseLoggingboolean<optional>
false

Useful for debugging

Extends

Methods

exec(node, callback)

Parameters:
NameTypeDescription
nodeKademliaNode
callbackfunction