diff options
author | luigi1111 <luigi1111w@gmail.com> | 2019-07-24 14:35:11 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2019-07-24 14:35:11 -0500 |
commit | 61512cf79813d1fa9b54e3c081e4d0304c419a6c (patch) | |
tree | e5b33c282cef725897b596df04c5a2ef2779ec9e /src/p2p/net_node.h | |
parent | Merge pull request #5608 (diff) | |
parent | p2p: delay IGP probing on startup (diff) | |
download | monero-61512cf79813d1fa9b54e3c081e4d0304c419a6c.tar.xz |
Merge pull request #5610
068fa1c p2p: delay IGP probing on startup (moneromooo-monero)
Diffstat (limited to 'src/p2p/net_node.h')
-rw-r--r-- | src/p2p/net_node.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/p2p/net_node.h b/src/p2p/net_node.h index 5d9e19d5d..0d95ceb99 100644 --- a/src/p2p/net_node.h +++ b/src/p2p/net_node.h @@ -205,6 +205,13 @@ namespace nodetool } }; + enum igd_t + { + no_igd, + igd, + delayed_igd, + }; + public: typedef t_payload_net_handler payload_net_handler; @@ -214,7 +221,7 @@ namespace nodetool m_rpc_port(0), m_allow_local_ip(false), m_hide_my_port(false), - m_no_igd(false), + m_igd(no_igd), m_offline(false), is_closing(false), m_network_id() @@ -416,7 +423,7 @@ namespace nodetool uint16_t m_rpc_port; bool m_allow_local_ip; bool m_hide_my_port; - bool m_no_igd; + igd_t m_igd; bool m_offline; std::atomic<bool> is_closing; std::unique_ptr<boost::thread> mPeersLoggerThread; @@ -491,6 +498,7 @@ namespace nodetool extern const command_line::arg_descriptor<bool> arg_no_sync; extern const command_line::arg_descriptor<bool> arg_no_igd; + extern const command_line::arg_descriptor<std::string> arg_igd; extern const command_line::arg_descriptor<bool> arg_offline; extern const command_line::arg_descriptor<int64_t> arg_out_peers; extern const command_line::arg_descriptor<int64_t> arg_in_peers; |