mirror of
https://github.com/tailscale/tailscale.git
synced 2026-05-05 12:16:44 +02:00
remove completed TODO
This commit is contained in:
parent
c7cd8a7bae
commit
dd94b37ef3
@ -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))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user