Open leocrawford opened 3 years ago
In tproxy_udp.go we have:
tproxy_udp.go
if err = binary.Read(bytes.NewReader(msg.Data), binary.BigEndian, originalDstRaw); err != nil {
This failed on a big endian box, but adjusting it to
if err = binary.Read(bytes.NewReader(msg.Data), nativeEndian, originalDstRaw); err != nil {
where nativeEndian was defined here: https://stackoverflow.com/questions/51332658/any-better-way-to-check-endianness-in-go worked fine.
In
tproxy_udp.go
we have:if err = binary.Read(bytes.NewReader(msg.Data), binary.BigEndian, originalDstRaw); err != nil {
This failed on a big endian box, but adjusting it to
if err = binary.Read(bytes.NewReader(msg.Data), nativeEndian, originalDstRaw); err != nil {
where nativeEndian was defined here: https://stackoverflow.com/questions/51332658/any-better-way-to-check-endianness-in-go worked fine.