mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 12:28:42 +00:00
Updated tools/dhtnode.cpp to remove std::to_string
Fixed for building with cygwin.
This commit is contained in:
1 parent
0a4195ae08
commit
fb0450d309
1 file changed
+5
-2
+5
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user