Send the address and port for client swarm requests

This commit is contained in:
Beaudan 2019-06-04 14:11:11 +10:00
parent fe2d3526e9
commit 61b2a119b2

View file

@ -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;