diff --git a/pybind/llarp/context.cpp b/pybind/llarp/context.cpp index a179a0a32..b15b67bae 100644 --- a/pybind/llarp/context.cpp +++ b/pybind/llarp/context.cpp @@ -47,6 +47,9 @@ namespace tooling { using HiveContext_ptr = std::shared_ptr; py::class_(mod, "HiveContext") - .def("getRouterAsHiveRouter", &tooling::HiveContext::getRouterAsHiveRouter); + .def( + "getRouterAsHiveRouter", + &tooling::HiveContext::getRouterAsHiveRouter, + py::return_value_policy::reference); } } // namespace tooling