mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
net: Split resolving out of CService
This commit is contained in:
parent
31d6b1d5f0
commit
f96c7c4d91
9 changed files with 94 additions and 101 deletions
|
|
@ -614,7 +614,7 @@ CService HTTPRequest::GetPeer()
|
|||
const char* address = "";
|
||||
uint16_t port = 0;
|
||||
evhttp_connection_get_peer(con, (char**)&address, &port);
|
||||
peer = CService(address, port);
|
||||
LookupNumeric(address, peer, port);
|
||||
}
|
||||
return peer;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue