Missed in last commit

This commit is contained in:
Matt Joiner 2015-10-19 00:02:42 +11:00
parent a4049e179c
commit 9c200c0037
1 changed files with 1 additions and 1 deletions

View File

@ -856,7 +856,7 @@ func (s *Server) nodeTimedOut(addr dHTAddr) {
func (s *Server) writeToNode(b []byte, node dHTAddr) (err error) {
if list := s.ipBlockList; list != nil {
if r := list.Lookup(missinggo.AddrIP(node.UDPAddr())); r != nil {
if r, ok := list.Lookup(missinggo.AddrIP(node.UDPAddr())); ok {
err = fmt.Errorf("write to %s blocked: %s", node, r.Description)
return
}