From 5af37be85c7624df56f7d06969c82d53fdcec324 Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Wed, 25 Feb 2015 21:56:37 -0500 Subject: [PATCH] udp: fix renaming ipbuf->ipbytes --- udp/protocol.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/udp/protocol.go b/udp/protocol.go index 513bc7f..f089663 100644 --- a/udp/protocol.go +++ b/udp/protocol.go @@ -126,7 +126,7 @@ func (s *Server) newAnnounce(packet []byte, ip net.IP) (*models.Announce, error) } ipbytes := packet[84:88] - if s.config.AllowIPSpoofing && !bytes.Equal(ipbuf, []byte{0, 0, 0, 0}) { + if s.config.AllowIPSpoofing && !bytes.Equal(ipbytes, []byte{0, 0, 0, 0}) { ip = net.ParseIP(string(ipbytes)) }