Skip to content

Commit

Permalink
Update QuakeClient.java
Browse files Browse the repository at this point in the history
  • Loading branch information
bit4woo committed Oct 26, 2024
1 parent 80d3f2b commit bbeecfc
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/InternetSearch/Client/QuakeClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

import InternetSearch.SearchEngine;
import InternetSearch.SearchResultEntry;
import InternetSearch.SearchType;
import config.ConfigManager;
import config.ConfigName;

Expand Down Expand Up @@ -42,8 +41,18 @@ public List<SearchResultEntry> parseResp(String respbody) {

SearchResultEntry entry = new SearchResultEntry();

entry.getIPSet().add(entryitem.getString("ip"));
entry.setRootDomain(entryitem.getString("domain"));
try {
entry.getIPSet().add(entryitem.getString("ip"));
} catch (Exception e1) {
e1.printStackTrace();
}

try {
entry.setRootDomain(entryitem.getString("domain"));
} catch (Exception e1) {
e1.printStackTrace();
}


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

0 comments on commit bbeecfc

Please sign in to comment.