diff --git a/llarp/net/net_int.hpp b/llarp/net/net_int.hpp index 1fd263c7f..d9894024d 100644 --- a/llarp/net/net_int.hpp +++ b/llarp/net/net_int.hpp @@ -168,6 +168,12 @@ namespace llarp return n < x.n; } + constexpr bool + operator!=(nuint_t x) const + { + return n != x.n; + } + constexpr bool operator==(nuint_t x) const { diff --git a/llarp/router/route_poker.cpp b/llarp/router/route_poker.cpp index af91c90e5..df29a36b0 100644 --- a/llarp/router/route_poker.cpp +++ b/llarp/router/route_poker.cpp @@ -157,7 +157,7 @@ namespace llarp } // update current gateway and apply state chnages as needed - if (not(m_CurrentGateway == next_gw)) + if (m_CurrentGateway != next_gw) { if (next_gw and m_CurrentGateway) {