net: Have LookupNumeric return a CService directly

This commit is contained in:
Cory Fields
2016-08-04 16:37:49 -04:00
committed by lateminer
parent 327528fbf1
commit 84a208b9d2
8 changed files with 18 additions and 21 deletions

View File

@@ -614,7 +614,7 @@ CService HTTPRequest::GetPeer()
const char* address = "";
uint16_t port = 0;
evhttp_connection_get_peer(con, (char**)&address, &port);
LookupNumeric(address, peer, port);
peer = LookupNumeric(address, port);
}
return peer;
}