Class: ReverseTunnelStrategy

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.

new ReverseTunnelStrategy( [options])

Parameters:
Name Type Argument Description
options object <optional>
Properties
Name Type Argument Default Description
remoteAddress string <optional>
tunnel.bookch.in Diglet server address
remotePort number <optional>
8443 Diglet server port
privateKey buffer <optional>
SECP256K1 private key if using spartacus
secureLocalConnection boolean <optional>
false Set to true if using HTTPSTransport
verboseLogging boolean <optional>
false Useful for debugging
Source:

Extends

Methods


exec(node, callback)

Parameters:
Name Type Description
node KademliaNode
callback function
Overrides:
Source: