make pybind compile

pull/1748/head
Jeff Becker 3 years ago committed by Jeff
parent bf6dfaaef8
commit f8768488ed

@ -75,18 +75,18 @@ namespace llarp
.def(py::init<>()) .def(py::init<>())
.def( .def(
"setOutboundLink", "setOutboundLink",
[](LinksConfig& self, std::string interface, int family, uint16_t port) { [](LinksConfig& self, std::string _interface, int family, uint16_t port) {
LinksConfig::LinkInfo info; LinksConfig::LinkInfo info;
info.m_interface = std::move(interface); info.m_interface = std::move(_interface);
info.addressFamily = family; info.addressFamily = family;
info.port = port; info.port = port;
self.m_OutboundLink = std::move(info); self.m_OutboundLink = std::move(info);
}) })
.def( .def(
"addInboundLink", "addInboundLink",
[](LinksConfig& self, std::string interface, int family, uint16_t port) { [](LinksConfig& self, std::string _interface, int family, uint16_t port) {
LinksConfig::LinkInfo info; LinksConfig::LinkInfo info;
info.m_interface = std::move(interface); info.minterface = std::move(_interface);
info.addressFamily = family; info.addressFamily = family;
info.port = port; info.port = port;
self.m_InboundLinks.push_back(info); self.m_InboundLinks.push_back(info);

Loading…
Cancel
Save