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

Fixed for building with cygwin.
This commit is contained in:
casparcedro committed 2015-12-06 23:06:06 -05:00
1 parent 0a4195ae08
commit fb0450d309
1 file changed
+5 -2
+5 -2
View File
@@ -153,8 +153,11 @@ main(int argc, char **argv)
} else if (op == "b") {
try {
auto addr = splitPort(idstr);
if (not addr.first.empty() and addr.second.empty())
addr.second = std::to_string(DHT_DEFAULT_PORT);
if (not addr.first.empty() and addr.second.empty()){
std::stringstream ss;
ss << DHT_DEFAULT_PORT;
addr.second = ss.str();
}
dht.bootstrap(addr.first.c_str(), addr.second.c_str());
} catch (const std::exception& e) {
std::cout << e.what() << std::endl;