diff --git a/python/opendht.pyx b/python/opendht.pyx index abc7bc2b..329bac23 100644 --- a/python/opendht.pyx +++ b/python/opendht.pyx @@ -508,9 +508,9 @@ cdef class DhtRunner(_WithID): cpp.enableFileLogging(self.thisptr.get()[0], path.encode()) def isRunning(self): return self.thisptr.get().isRunning() - def getBound(self, cpp.sa_family_t af = 0): + def getBound(self): s = SockAddr() - s._addr = self.thisptr.get().getBound(af) + s._addr = self.thisptr.get().getBound() return s def getStorageLog(self): return self.thisptr.get().getStorageLog().decode() diff --git a/python/opendht_cpp.pxd b/python/opendht_cpp.pxd index c80c5a3f..7d17c419 100644 --- a/python/opendht_cpp.pxd +++ b/python/opendht_cpp.pxd @@ -73,7 +73,7 @@ cdef extern from "opendht/sockaddr.h" namespace "dht": SockAddr() except + string toString() const in_port_t getPort() const - void setPort(in_port_t p) + void setPort(in_port_t p) const sa_family_t getFamily() const void setFamily(sa_family_t f) @@ -227,7 +227,7 @@ cdef extern from "opendht/dhtrunner.h" namespace "dht": void join() void shutdown(ShutdownCallback) bool isRunning() - SockAddr getBound(sa_family_t af) const + SockAddr getBound() const string getStorageLog() const string getRoutingTablesLog(sa_family_t af) const string getSearchesLog(sa_family_t af) const