Use str instead of lokimq::ConnectionID in pybind

This commit is contained in:
Stephen Shelton 2020-07-23 10:52:53 -06:00
parent eedf7ca599
commit 607d04a314
No known key found for this signature in database
GPG Key ID: EE4BADACCE8B631C
1 changed files with 4 additions and 1 deletions

View File

@ -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_<BootstrapConfig>(mod, "BootstrapConfig")
.def(py::init<>())