From 607d04a3140a23367dad88e0bf3d23c06dfef800 Mon Sep 17 00:00:00 2001 From: Stephen Shelton Date: Thu, 23 Jul 2020 10:52:53 -0600 Subject: [PATCH] Use str instead of lokimq::ConnectionID in pybind --- pybind/llarp/config.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pybind/llarp/config.cpp b/pybind/llarp/config.cpp index e38626645..b14575013 100644 --- a/pybind/llarp/config.cpp +++ b/pybind/llarp/config.cpp @@ -102,7 +102,10 @@ namespace llarp .def_readwrite("usingSNSeed", &LokidConfig::usingSNSeed) .def_readwrite("whitelistRouters", &LokidConfig::whitelistRouters) .def_readwrite("ident_keyfile", &LokidConfig::ident_keyfile) - .def_readwrite("lokidRPCAddr", &LokidConfig::lokidRPCAddr); + .def_property( + "lokidRPCAddr", + [](LokidConfig& self) { return self.lokidRPCAddr.full_address().c_str(); }, + [](LokidConfig& self, std::string arg) { self.lokidRPCAddr = lokimq::address(arg); }); py::class_(mod, "BootstrapConfig") .def(py::init<>())