diff options
Diffstat (limited to 'src/Networking/LwipEthernet/LwipSocket.cpp')
-rw-r--r-- | src/Networking/LwipEthernet/LwipSocket.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Networking/LwipEthernet/LwipSocket.cpp b/src/Networking/LwipEthernet/LwipSocket.cpp index 7b236889..786a2db0 100644 --- a/src/Networking/LwipEthernet/LwipSocket.cpp +++ b/src/Networking/LwipEthernet/LwipSocket.cpp @@ -87,7 +87,7 @@ bool LwipSocket::AcceptConnection(tcp_pcb *pcb) whenConnected = millis(); connectionPcb = pcb; - remoteIPAddress.SetV4(swap32(pcb->remote_ip.addr)); // LWIP IP addresses are big-endian, ours are little endian + remoteIPAddress.SetV4LittleEndian(pcb->remote_ip.addr); remotePort = pcb->remote_port; tcp_arg(pcb, this); |