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
1 changed files with 0 additions and 3 deletions

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{