mirror of
https://github.com/oxen-io/oxen-storage-server.git
synced 2023-12-13 21:00:26 +01:00
Send the address and port for client swarm requests
This commit is contained in:
parent
fe2d3526e9
commit
61b2a119b2
1 changed files with 4 additions and 5 deletions
|
@ -679,11 +679,10 @@ void connection_t::process_snodes_by_pk(const json& params) {
|
|||
json snodes = json::array();
|
||||
|
||||
for (const auto& sn : nodes) {
|
||||
#ifdef INTEGRATION_TEST
|
||||
snodes.push_back(std::to_string(sn.port));
|
||||
#else
|
||||
snodes.push_back(sn.address);
|
||||
#endif
|
||||
json snode;
|
||||
snode["address"] = sn.address;
|
||||
snode["port"] = std::to_string(sn.port);
|
||||
snodes.push_back(snode);
|
||||
}
|
||||
|
||||
res_body["snodes"] = snodes;
|
||||
|
|
Loading…
Reference in a new issue