remove completed TODO

This commit is contained in:
Josh Bleecher Snyder
2021-07-08 14:33:05 -07:00
parent c7cd8a7bae
commit dd94b37ef3

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))