diff --git a/include/llarp/handlers/tun.hpp b/include/llarp/handlers/tun.hpp index e4a00d220..952b42c1d 100644 --- a/include/llarp/handlers/tun.hpp +++ b/include/llarp/handlers/tun.hpp @@ -90,6 +90,10 @@ namespace llarp return m_AddrToIP.find(remote) != m_AddrToIP.end(); } + /// get ip address for service address unconditionally + huint32_t + ObtainIPForAddr(const service::Address& addr); + protected: typedef llarp::util::CoDelQueue< net::IPv4Packet, net::IPv4Packet::GetTime, net::IPv4Packet::PutTime, @@ -103,10 +107,6 @@ namespace llarp bool HasRemoteForIP(huint32_t ipv4) const; - /// get ip address for service address unconditionally - huint32_t - ObtainIPForAddr(const service::Address& addr); - /// mark this address as active void MarkIPActive(huint32_t ip); diff --git a/include/llarp/service/endpoint.hpp b/include/llarp/service/endpoint.hpp index aebf9eb9a..48ced9df7 100644 --- a/include/llarp/service/endpoint.hpp +++ b/include/llarp/service/endpoint.hpp @@ -107,7 +107,7 @@ namespace llarp HasPathToService(const Address& remote) const; virtual huint32_t - ObtainIPForAddr(const Address& remote) + ObtainIPForAddr(const llarp::service::Address& remote) { return {0}; }