remove completed TODO

This commit is contained in:
Josh Bleecher Snyder committed 2021-07-13 15:15:16 -07:00
1 parent c7cd8a7bae
commit dd94b37ef3
1 file changed
-1
-1
View File
@@ -219,7 +219,6 @@ func (u *UDPConn) ReadFromNetaddr(buf []byte) (int, netaddr.IPPort, error) {
r := u.recvReqs[idx]
var ip netaddr.IP
var port uint16
// TODO: native go endianness conversion routines so we don't have to call ntohl, etc.
if u.is4 {
ip = netaddr.IPFrom4(*(*[4]byte)((unsafe.Pointer)((&r.sa.sin_addr.s_addr))))
port = endian.Ntoh16(uint16(r.sa.sin_port))