aboutsummaryrefslogtreecommitdiff
path: root/src/p2p
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-03-27 14:47:57 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-03-27 14:48:36 +0100
commit11c933e1374a7ac18fe3a2e89ab19fbf290b8149 (patch)
treef0d402bdb6fcac2b6aeb4266ec3b770219c9466f /src/p2p
parentMerge pull request #3434 (diff)
downloadmonero-11c933e1374a7ac18fe3a2e89ab19fbf290b8149.tar.xz
fix lambda compile error on openbsd
Diffstat (limited to 'src/p2p')
-rw-r--r--src/p2p/net_node.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/p2p/net_node.cpp b/src/p2p/net_node.cpp
index bde6fc88e..c9ca63f43 100644
--- a/src/p2p/net_node.cpp
+++ b/src/p2p/net_node.cpp
@@ -39,7 +39,7 @@ namespace nodetool
, "Port for p2p network protocol"
, std::to_string(config::P2P_DEFAULT_PORT)
, {{ &cryptonote::arg_testnet_on, &cryptonote::arg_stagenet_on }}
- , [](std::array<bool, 2> testnet_stagenet, bool defaulted, std::string val) {
+ , [](std::array<bool, 2> testnet_stagenet, bool defaulted, std::string val)->std::string {
if (testnet_stagenet[0] && defaulted)
return std::to_string(config::testnet::P2P_DEFAULT_PORT);
else if (testnet_stagenet[1] && defaulted)