mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-08-28 09:26:54 +00:00
FetchHTTP2: Handle getRemoteSocketAddress() returning null
This commit is contained in:
@@ -416,7 +416,9 @@ public class FetchHTTP2 extends Processor implements Lifecycle, InitializingBean
|
||||
|
||||
// Server IP address
|
||||
var socketAddress = (InetSocketAddress) response.getRequest().getConnection().getRemoteSocketAddress();
|
||||
curi.setServerIP(socketAddress.getAddress().getHostAddress());
|
||||
if (socketAddress != null) {
|
||||
curi.setServerIP(socketAddress.getAddress().getHostAddress());
|
||||
}
|
||||
|
||||
// Request method
|
||||
if (curi.getFetchType() != CrawlURI.FetchType.HTTP_POST) {
|
||||
|
||||
Reference in New Issue
Block a user