http-dht-proxy
v2.0.0
Published
Relay http request to dht peer
Readme
Http DHT Proxy
Relay http request to dht peer
Installation
Install globally to use the http-dht-proxy command:
npm install -g http-dht-proxyUsage
Run a http-dht-proxy:
http-dht-proxy 8080Example
Start proxy server: node bin.js
HTTP-to-DHT proxy on 8080Start sample server: node example/server.js
Local http server on 8081
DHT public key abcdef123456Send sample request: node example/client.js <dht-public-key>, e.g.
node example/client.js abcdef123456Server will receive request, e.g.
New request {
host: 'abcdef123456.localhost:8080',
} {"message":"Hello world!"}