aboutsummaryrefslogtreecommitdiff
path: root/src/p2p/net_node.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-06-06 10:28:02 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-06-06 10:33:02 +0000
commit068fa1ca5c0bea39576d750ee92406b31af6ef38 (patch)
tree9615e5e8b36f06472360dc96a6581b4aefe73091 /src/p2p/net_node.h
parentMerge pull request #5583 (diff)
downloadmonero-068fa1ca5c0bea39576d750ee92406b31af6ef38.tar.xz
p2p: delay IGP probing on startup
We might have external access without having to do this
Diffstat (limited to 'src/p2p/net_node.h')
-rw-r--r--src/p2p/net_node.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/p2p/net_node.h b/src/p2p/net_node.h
index 42bb3b061..882cc8fe5 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),
m_save_graph(false),
is_closing(false),
@@ -417,7 +424,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> m_save_graph;
std::atomic<bool> is_closing;
@@ -492,6 +499,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;