Commit 77aa5927 authored by bletest's avatar bletest
Browse files

ds

parent 84707812
# dht
[![CircleCI](https://circleci.com/gh/anacrolix/dht.svg?style=shield)](https://circleci.com/gh/anacrolix/dht)
[![GoDoc](https://godoc.org/github.com/anacrolix/dht?status.svg)](https://godoc.org/github.com/anacrolix/dht)
[![GoDoc](https://godoc.org/git.anonify.eu/x0x/dht?status.svg)](https://godoc.org/git.anonify.eu/x0x/dht)
[![Join the chat at https://gitter.im/anacrolix/torrent](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/anacrolix/torrent?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
## Installation
Install the library package with `go get github.com/anacrolix/dht`, or the provided cmds with `go get github.com/anacrolix/dht/cmd/...`.
Install the library package with `go get git.anonify.eu/x0x/dht`, or the provided cmds with `go get git.anonify.eu/x0x/dht/cmd/...`.
## Commands
......
......@@ -5,7 +5,7 @@ import (
"github.com/anacrolix/missinggo"
"github.com/anacrolix/dht/v2/krpc"
"git.anonify.eu/x0x/dht/v2/krpc"
)
// Used internally to refer to node network addresses. String() is called a
......
......@@ -13,7 +13,7 @@ import (
"github.com/anacrolix/stm/stmutil"
"github.com/benbjohnson/immutable"
"github.com/anacrolix/dht/v2/krpc"
"git.anonify.eu/x0x/dht/v2/krpc"
)
// Maintains state for an ongoing Announce operation. An Announce is started by calling
......
......@@ -5,7 +5,7 @@ import (
"github.com/anacrolix/stm"
"github.com/anacrolix/dht/v2/krpc"
"git.anonify.eu/x0x/dht/v2/krpc"
)
// Populates the node table.
......
......@@ -10,7 +10,7 @@ import (
_ "github.com/anacrolix/envpprof"
"github.com/anacrolix/tagflag"
"github.com/anacrolix/dht/v2"
"git.anonify.eu/x0x/dht/v2"
)
func main() {
......
......@@ -10,7 +10,7 @@ import (
_ "github.com/anacrolix/envpprof"
"github.com/anacrolix/dht/v2"
"git.anonify.eu/x0x/dht/v2"
)
var (
......
......@@ -10,8 +10,8 @@ import (
"github.com/anacrolix/tagflag"
"github.com/anacrolix/dht/v2"
"github.com/anacrolix/dht/v2/krpc"
"git.anonify.eu/x0x/dht/v2"
"git.anonify.eu/x0x/dht/v2/krpc"
)
func main() {
......
......@@ -8,7 +8,7 @@ import (
"github.com/docopt/docopt-go"
"github.com/anacrolix/dht/v2"
"git.anonify.eu/x0x/dht/v2"
)
func main() {
......
......@@ -11,7 +11,7 @@ import (
_ "github.com/anacrolix/envpprof"
"github.com/anacrolix/tagflag"
"github.com/anacrolix/dht/v2"
"git.anonify.eu/x0x/dht/v2"
)
var (
......
......@@ -15,7 +15,7 @@ import (
"github.com/anacrolix/missinggo"
"github.com/anacrolix/missinggo/v2/conntrack"
"github.com/anacrolix/dht/v2/krpc"
"git.anonify.eu/x0x/dht/v2/krpc"
)
func defaultQueryResendDelay() time.Duration {
......
......@@ -18,7 +18,7 @@ import (
"github.com/anacrolix/log"
"github.com/anacrolix/dht/v2/krpc"
"git.anonify.eu/x0x/dht/v2/krpc"
)
func TestSetNilBigInt(t *testing.T) {
......@@ -234,7 +234,7 @@ func TestGlobalBootstrapAddrs(t *testing.T) {
}
}
// https://github.com/anacrolix/dht/pull/19
// https://git.anonify.eu/x0x/dht/pull/19
func TestBadGetPeersResponse(t *testing.T) {
pc, err := net.ListenPacket("udp", "localhost:0")
require.NoError(t, err)
......
......@@ -8,7 +8,7 @@ require (
github.com/anacrolix/stm v0.2.0
github.com/anacrolix/sync v0.2.0
github.com/anacrolix/tagflag v1.0.1
git.anonify.eu/x0x/torrent v1.15.7
git.anonify.eu/x0x/torrent v1.15.8
github.com/benbjohnson/immutable v0.2.0
github.com/bradfitz/iter v0.0.0-20191230175014-e8f45d346db8
github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815
......
......@@ -17,11 +17,11 @@ github.com/alexflint/go-arg v1.1.0/go.mod h1:3Rj4baqzWaGGmZA2+bVTV8zQOZEjBQAPBnL
github.com/alexflint/go-arg v1.2.0/go.mod h1:3Rj4baqzWaGGmZA2+bVTV8zQOZEjBQAPBnL5xLT+ftY=
github.com/alexflint/go-scalar v1.0.0 h1:NGupf1XV/Xb04wXskDFzS0KWOLH632W/EO4fAFi+A70=
github.com/alexflint/go-scalar v1.0.0/go.mod h1:GpHzbCOZXEKMEcygYQ5n/aa4Aq84zbxjy3MxYW0gjYw=
github.com/anacrolix/dht v0.0.0-20180412060941-24cbf25b72a4 h1:0yHJvFiGQhJ1gSHJOR8xzmnx45orEt7uiIB6guf0+zc=
github.com/anacrolix/dht v0.0.0-20180412060941-24cbf25b72a4/go.mod h1:hQfX2BrtuQsLQMYQwsypFAab/GvHg8qxwVi4OJdR1WI=
github.com/anacrolix/dht/v2 v2.0.1/go.mod h1:GbTT8BaEtfqab/LPd5tY41f3GvYeii3mmDUK300Ycyo=
github.com/anacrolix/dht/v2 v2.2.1-0.20191103020011-1dba080fb358/go.mod h1:d7ARx3WpELh9uOEEr0+8wvQeVTOkPse4UU6dKpv4q0E=
github.com/anacrolix/dht/v2 v2.3.2-0.20200103043204-8dce00767ebd/go.mod h1:cgjKyErDnKS6Mej5D1fEqBKg3KwFF2kpFZJp3L6/fGI=
git.anonify.eu/x0x/dht v0.0.0-20180412060941-24cbf25b72a4 h1:0yHJvFiGQhJ1gSHJOR8xzmnx45orEt7uiIB6guf0+zc=
git.anonify.eu/x0x/dht v0.0.0-20180412060941-24cbf25b72a4/go.mod h1:hQfX2BrtuQsLQMYQwsypFAab/GvHg8qxwVi4OJdR1WI=
git.anonify.eu/x0x/dht/v2 v2.0.1/go.mod h1:GbTT8BaEtfqab/LPd5tY41f3GvYeii3mmDUK300Ycyo=
git.anonify.eu/x0x/dht/v2 v2.2.1-0.20191103020011-1dba080fb358/go.mod h1:d7ARx3WpELh9uOEEr0+8wvQeVTOkPse4UU6dKpv4q0E=
git.anonify.eu/x0x/dht/v2 v2.3.2-0.20200103043204-8dce00767ebd/go.mod h1:cgjKyErDnKS6Mej5D1fEqBKg3KwFF2kpFZJp3L6/fGI=
github.com/anacrolix/envpprof v0.0.0-20180404065416-323002cec2fa h1:xCaATLKmn39QqLs3tUZYr6eKvezJV+FYvVOLTklxK6U=
github.com/anacrolix/envpprof v0.0.0-20180404065416-323002cec2fa/go.mod h1:KgHhUaQMc8cC0+cEflSgCFNFbKwi5h54gqtVn8yhP7c=
github.com/anacrolix/envpprof v1.0.0/go.mod h1:KgHhUaQMc8cC0+cEflSgCFNFbKwi5h54gqtVn8yhP7c=
......
......@@ -8,7 +8,7 @@ import (
"github.com/anacrolix/missinggo/v2"
"github.com/anacrolix/stm/stmutil"
"github.com/anacrolix/dht/v2/krpc"
"git.anonify.eu/x0x/dht/v2/krpc"
)
func mustListen(addr string) net.PacketConn {
......
......@@ -6,7 +6,7 @@ import (
"github.com/anacrolix/missinggo/v2/iter"
"github.com/stretchr/testify/assert"
"github.com/anacrolix/dht/v2/krpc"
"git.anonify.eu/x0x/dht/v2/krpc"
)
func int160WithBitSet(bit int) *int160 {
......
......@@ -3,7 +3,7 @@ package dht
import (
"time"
"github.com/anacrolix/dht/v2/krpc"
"git.anonify.eu/x0x/dht/v2/krpc"
)
type nodeKey struct {
......
......@@ -4,7 +4,7 @@ import (
"io/ioutil"
"os"
"github.com/anacrolix/dht/v2/krpc"
"git.anonify.eu/x0x/dht/v2/krpc"
)
func WriteNodesToFile(ns []krpc.NodeInfo, fileName string) (err error) {
......
......@@ -8,7 +8,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/anacrolix/dht/v2/krpc"
"git.anonify.eu/x0x/dht/v2/krpc"
)
func TestSaveLoadNodesFile(t *testing.T) {
......
......@@ -23,7 +23,7 @@ import (
"github.com/anacrolix/stm"
"github.com/anacrolix/dht/v2/krpc"
"git.anonify.eu/x0x/dht/v2/krpc"
)
// A Server defines parameters for a DHT node server that is able to send
......
......@@ -4,7 +4,7 @@ import (
"context"
"time"
"github.com/anacrolix/dht/v2/krpc"
"git.anonify.eu/x0x/dht/v2/krpc"
)
// Transaction keeps track of a message exchange between nodes, such as a
......
......@@ -7,7 +7,7 @@ import (
"github.com/anacrolix/stm"
"github.com/anacrolix/stm/stmutil"
"github.com/anacrolix/dht/v2/krpc"
"git.anonify.eu/x0x/dht/v2/krpc"
)
type TraversalStats struct {
......
......@@ -6,7 +6,7 @@ import (
"github.com/anacrolix/stm"
"github.com/stretchr/testify/assert"
"github.com/anacrolix/dht/v2/krpc"
"git.anonify.eu/x0x/dht/v2/krpc"
)
func TestTraversal(t *testing.T) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment