Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
support custom hosts file size
  • Loading branch information
flaming-archer committed Oct 28, 2024
commit 2d61334fd98189b8eee79e480cbde0306245703a
3 changes: 2 additions & 1 deletion src/main/java/org/xbill/DNS/hosts/HostsFileParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
*/
@Slf4j
public final class HostsFileParser {
private static final int MAX_FULL_CACHE_FILE_SIZE_BYTES = 16384;
private static final int MAX_FULL_CACHE_FILE_SIZE_BYTES = Integer.parseInt(
System.getProperty("dnsjava.hostsfile.max_size", "16384"));

private final Map<String, InetAddress> hostsCache = new HashMap<>();
private final Path path;
Expand Down