Skip to content

Commit

Permalink
Update ZoomEyeClient.java
Browse files Browse the repository at this point in the history
  • Loading branch information
bit4woo committed Apr 17, 2024
1 parent 7c8fb0c commit d625533
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/InternetSearch/Client/ZoomEyeClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ public List<SearchResultEntry> parseResp(String respbody) {
}
}

entry.setHost(entryitem.getString("rdns"));
try {
entry.setHost(entryitem.getString("rdns"));
} catch (Exception e) {
entry.setHost(entryitem.getString("ip"));
}

int port = entryitem.getJSONObject("portinfo").getInt("port");
entry.setPort(port);
Expand Down

0 comments on commit d625533

Please sign in to comment.