diff --git a/llarp/handlers/tun.cpp b/llarp/handlers/tun.cpp index 550ad5e2b..2951e67c9 100644 --- a/llarp/handlers/tun.cpp +++ b/llarp/handlers/tun.cpp @@ -745,8 +745,8 @@ namespace llarp const auto maybe = GetInterfaceIPv6Address(m_IfName); if (maybe.has_value()) { - m_OurIP6 = *maybe; - LogInfo(Name(), " has ipv6 address ", m_OurIP6); + m_OurIPv6 = *maybe; + LogInfo(Name(), " has ipv6 address ", m_OurIPv6); } netloop->add_ticker([&]() { Flush(); }); @@ -970,7 +970,7 @@ namespace llarp } else if (pkt.IsV6()) { - dst = m_OurIP6; + dst = m_OurIPv6; src = pkt.srcv6(); } // find what exit we think this should be for diff --git a/llarp/handlers/tun.hpp b/llarp/handlers/tun.hpp index 045280ea0..713d911df 100644 --- a/llarp/handlers/tun.hpp +++ b/llarp/handlers/tun.hpp @@ -235,8 +235,8 @@ namespace llarp std::unordered_map m_IPActivity; /// our ip address (host byte order) huint128_t m_OurIP; - /// our ip for ip6 - huint128_t m_OurIP6; + /// our network interface's ipv6 address + huint128_t m_OurIPv6; /// next ip address to allocate (host byte order) huint128_t m_NextIP;