diff options
author | Determinant <[email protected]> | 2019-06-29 16:35:20 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2019-06-29 16:35:20 -0400 |
commit | 5f617d88a399f276133b4187eb31ca49e5f1338a (patch) | |
tree | 69a5b14f96a7ba6f1f17099cd1169fd74110703f /src | |
parent | 54f5abf3d4dac9cdf04846d5b952799c31753c9d (diff) |
...
Diffstat (limited to 'src')
-rw-r--r-- | src/network.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/network.cpp b/src/network.cpp index 78f653b..5b0018c 100644 --- a/src/network.cpp +++ b/src/network.cpp @@ -229,6 +229,10 @@ peernetwork_conn_t *peernetwork_conn_copy(const peernetwork_conn_t *self) { return new peernetwork_conn_t(*self); } +netaddr_t *peernetwork_conn_get_peer_addr(const peernetwork_conn_t *self) { + return new netaddr_t((*self)->get_peer_addr()); +} + void peernetwork_conn_free(const peernetwork_conn_t *self) { delete self; } void peernetwork_send_msg(peernetwork_t *self, const msg_t * msg, const netaddr_t *addr) { |