bittorrent-relay
Advanced tools
Comparing version 5.0.5 to 5.0.6
#!/usr/bin/env node | ||
import minimist from 'minimist' | ||
import Relay from '../index.js' | ||
import {Server} from '../index.js' | ||
import path from 'path' | ||
@@ -82,3 +82,3 @@ import fs from 'fs' | ||
const relay = new Relay({ | ||
const sever = new Server({ | ||
announceTimer: argv['announce-timer'], | ||
@@ -97,16 +97,16 @@ relayTimer: argv['relay-timer'], | ||
relay.on('listening', (which) => { | ||
sever.on('listening', (which) => { | ||
console.log('listening', which) | ||
}) | ||
relay.on('error', (which, err) => { | ||
sever.on('error', (which, err) => { | ||
console.error('close', which, err) | ||
}) | ||
relay.on('close', (which) => { | ||
sever.on('close', (which) => { | ||
console.log('close', which) | ||
}) | ||
relay.turnOn(() => { | ||
sever.turnOn(() => { | ||
console.log('turned on') | ||
}) |
{ | ||
"name": "bittorrent-relay", | ||
"description": "Uses the mainline dht to relay requests to other trackers in a swarm", | ||
"version": "5.0.5", | ||
"version": "5.0.6", | ||
"bin": { | ||
@@ -6,0 +6,0 @@ "bittorrent-relay": "./bin/cmd.js" |
95778