]> Sergey Matveev's repositories - btrtrc.git/commitdiff
dht: Receiving UDP source port 0 isn't an error apparently
authorMatt Joiner <anacrolix@gmail.com>
Tue, 2 Dec 2014 20:55:41 +0000 (14:55 -0600)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 2 Dec 2014 20:55:41 +0000 (14:55 -0600)
dht/dht.go

index 5059e0f30adaeeb379a6a2a6d6eacc6eddc1b092..9840961cc85d9c132e73020d18280d0a422d1e4b 100644 (file)
@@ -456,9 +456,6 @@ func (s *Server) heardFromNode(addr dHTAddr, id string) {
 }
 
 func (s *Server) getNode(addr dHTAddr) (n *Node) {
-       if util.AddrPort(addr) == 0 {
-               panic(addr)
-       }
        n = s.nodes[addr.String()]
        if n == nil {
                n = &Node{