diff options
author | MaxXor <admin@maxxor.org> | 2017-08-29 23:28:23 +0200 |
---|---|---|
committer | MaxXor <admin@maxxor.org> | 2017-08-29 23:28:23 +0200 |
commit | a1ea475fff07993a317392dab3c8779274128e90 (patch) | |
tree | ae1060490f0e7930578b5665e2d948e028c00b1f /src/p2p/net_node.h | |
parent | Merge pull request #2349 (diff) | |
download | monero-a1ea475fff07993a317392dab3c8779274128e90.tar.xz |
Delete UPnP port mapping on exit
Diffstat (limited to 'src/p2p/net_node.h')
-rw-r--r-- | src/p2p/net_node.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/p2p/net_node.h b/src/p2p/net_node.h index 22ae5ec26..84dc7ea19 100644 --- a/src/p2p/net_node.h +++ b/src/p2p/net_node.h @@ -218,6 +218,8 @@ namespace nodetool bool is_peer_used(const peerlist_entry& peer); bool is_peer_used(const anchor_peerlist_entry& peer); bool is_addr_connected(const epee::net_utils::network_address& peer); + void add_upnp_port_mapping(uint32_t port); + void delete_upnp_port_mapping(uint32_t port); template<class t_callback> bool try_ping(basic_node_data& node_data, p2p_connection_context& context, t_callback cb); bool try_get_support_flags(const p2p_connection_context& context, std::function<void(p2p_connection_context&, const uint32_t&)> f); |