Skip to content

Commit

Permalink
added suport for storing the IP address connected to when web crawling
Browse files Browse the repository at this point in the history
  • Loading branch information
jatrost committed Feb 28, 2012
1 parent d12cffc commit c4d74ed
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -89,6 +89,7 @@ public HttpResponse(HttpBase http, URL url, WebPage page)
int sockPort = http.useProxy() ? http.getProxyPort() : port;
InetSocketAddress sockAddr= new InetSocketAddress(sockHost, sockPort);
socket.connect(sockAddr, http.getTimeout());
headers.set("_ip", socket.getInetAddress().getHostAddress());

// make request
OutputStream req = socket.getOutputStream();
Expand Down

0 comments on commit c4d74ed

Please sign in to comment.