2
0
mirror of synced 2025-02-24 14:48:27 +00:00

dht: Receiving UDP source port 0 isn't an error apparently

This commit is contained in:
Matt Joiner 2014-12-02 14:55:41 -06:00
parent b1ac38a617
commit d2f8114154

View 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{