npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

http-dht-proxy

2.0.0

@hdegroote

npmHomeRepoSnykSocket
Downloads:0
$ npm install http-dht-proxy
DailyWeeklyMonthlyYearly

CI

Http DHT Proxy

Relay http request to dht peer

Installation

Install globally to use the http-dht-proxy command:

npm install -g http-dht-proxy

Usage

Run a http-dht-proxy:

http-dht-proxy 8080

Example

Start proxy server: node bin.js

HTTP-to-DHT proxy on 8080

Start sample server: node example/server.js

Local http server on 8081
DHT public key abcdef123456

Send sample request: node example/client.js <dht-public-key>, e.g.

node example/client.js abcdef123456

Server will receive request, e.g.

New request {
  host: 'abcdef123456.localhost:8080',
} {"message":"Hello world!"}