Skip to content
This repository was archived by the owner on Feb 15, 2025. It is now read-only.

Commit

Permalink
another attempt to fix Endpoint constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
bakatrouble committed May 14, 2019
1 parent 34e2db2 commit 16c19d0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/_tgvoip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <iostream>
// #include <chrono>

Endpoint::Endpoint(int64_t id, const std::string &ip, const std::string &ipv6, uint16_t port, const py::bytes &peer_tag)
Endpoint::Endpoint(int64_t id, const std::string &ip, const std::string &ipv6, uint16_t port, const std::string &peer_tag)
: id(id), ip(ip), ipv6(ipv6), port(port), peer_tag(peer_tag) {}

VoIPController::VoIPController() {}
Expand Down
2 changes: 1 addition & 1 deletion src/_tgvoip.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ struct Stats {
};

struct Endpoint {
Endpoint(int64_t id, const std::string &ip, const std::string &ipv6, uint16_t port, const py::bytes &peer_tag);
Endpoint(int64_t id, const std::string &ip, const std::string &ipv6, uint16_t port, const std::string &peer_tag);
int64_t id;
std::string ip;
std::string ipv6;
Expand Down
2 changes: 1 addition & 1 deletion src/_tgvoip_module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ PYBIND11_MODULE(_tgvoip, m) {
});

py::class_<Endpoint>(m, "Endpoint")
.def(py::init<long, const std::string &, const std::string &, int, const std::string &>())
.def(py::init<long, const std::string &, const std::string &, int, const py::bytes &>())
.def_readwrite("_id", &Endpoint::id)
.def_readwrite("ip", &Endpoint::ip)
.def_readwrite("ipv6", &Endpoint::ipv6)
Expand Down
2 changes: 1 addition & 1 deletion src/tgvoip/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
from tgvoip.tgvoip import *
from tgvoip.tgvoip import __all__

__version__ = '0.0.2.5'
__version__ = '0.0.2.6'

0 comments on commit 16c19d0

Please sign in to comment.