dht: Receiving UDP source port 0 isn't an error apparently
This commit is contained in:
parent
b1ac38a617
commit
d2f8114154
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue