Skip to content
Snippets Groups Projects
Commit fb0450d3 authored by casparcedro's avatar casparcedro
Browse files

Updated tools/dhtnode.cpp to remove std::to_string

Fixed for building with cygwin.
parent 0a4195ae
Branches
Tags
No related merge requests found
...@@ -153,8 +153,11 @@ main(int argc, char **argv) ...@@ -153,8 +153,11 @@ main(int argc, char **argv)
} else if (op == "b") { } else if (op == "b") {
try { try {
auto addr = splitPort(idstr); auto addr = splitPort(idstr);
if (not addr.first.empty() and addr.second.empty()) if (not addr.first.empty() and addr.second.empty()){
addr.second = std::to_string(DHT_DEFAULT_PORT); std::stringstream ss;
ss << DHT_DEFAULT_PORT;
addr.second = ss.str();
}
dht.bootstrap(addr.first.c_str(), addr.second.c_str()); dht.bootstrap(addr.first.c_str(), addr.second.c_str());
} catch (const std::exception& e) { } catch (const std::exception& e) {
std::cout << e.what() << std::endl; std::cout << e.what() << std::endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment