mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-12 21:52:38 +01:00
net: Split resolving out of CService
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user