diff options
| author | Felix Hanley <felix@userspace.com.au> | 2018-03-21 01:12:17 +0000 |
|---|---|---|
| committer | Felix Hanley <felix@userspace.com.au> | 2018-03-21 01:12:17 +0000 |
| commit | fa5b2e7fbfacfa68b4a11392c967a6cf8c0f9337 (patch) | |
| tree | 5a09ccb1b23867620a1e80465137ca52a7e953f5 /dht | |
| parent | e2e746843dca7874d287420336b3ec4830203ff5 (diff) | |
| download | dhtsearch-fa5b2e7fbfacfa68b4a11392c967a6cf8c0f9337.tar.gz dhtsearch-fa5b2e7fbfacfa68b4a11392c967a6cf8c0f9337.tar.bz2 | |
Blacklist some more DHT nodes
Diffstat (limited to 'dht')
| -rw-r--r-- | dht/node.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dht/node.go b/dht/node.go index b0dd9ec..61d4d67 100644 --- a/dht/node.go +++ b/dht/node.go @@ -398,6 +398,7 @@ func (n *Node) processFindNodeResults(rn remoteNode, nodeList string) { if len(nodeList)%nodeLength != 0 { n.log.Error("node list is wrong length", "length", len(nodeList)) + n.blacklist.Add(rn.addr.String(), true) return } |
