From fe435c13d3e8d8373a48a6c06e54356492f75d3a Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Sun, 6 Jul 2025 20:48:44 -0700 Subject: [PATCH] fix local address detection --- src/AsyncUtils.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AsyncUtils.hh b/src/AsyncUtils.hh index 1d531047..41be1883 100644 --- a/src/AsyncUtils.hh +++ b/src/AsyncUtils.hh @@ -240,7 +240,7 @@ inline uint32_t ipv4_addr_for_asio_addr(const asio::ip::address& addr) { if (!addr.is_v4()) { throw std::runtime_error("Address is not IPv4"); } - return ntohl(addr.to_v4().to_uint()); + return addr.to_v4().to_uint(); } asio::awaitable async_connect_tcp(uint32_t ipv4_addr, uint16_t port);