Skip to content

Commit 5e8b278

Browse files
authored
📁 pre-commit
Signed-off-by: exadev[bot] <exadev[bot]@users.noreply.github.com>
1 parent db1d013 commit 5e8b278

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

app/common/src/main/java/stirling/software/common/util/GeneralUtils.java

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@
3333
@UtilityClass
3434
public class GeneralUtils {
3535

36-
/** Maximum number of resolved DNS addresses allowed for a host before it is considered unsafe. */
36+
/**
37+
* Maximum number of resolved DNS addresses allowed for a host before it is considered unsafe.
38+
*/
3739
private static final int MAX_DNS_ADDRESSES = 20;
3840

3941
private final Set<String> DEFAULT_VALID_SCRIPTS = Set.of("png_to_webp.py", "split_photos.py");
@@ -298,8 +300,8 @@ public boolean isURLReachable(String urlStr) {
298300
}
299301

300302
/**
301-
* Checks whether a URL is reachable using configurable timeouts. Only {@code http} and
302-
* {@code https} protocols are permitted, and local/private/multicast ranges are blocked.
303+
* Checks whether a URL is reachable using configurable timeouts. Only {@code http} and {@code
304+
* https} protocols are permitted, and local/private/multicast ranges are blocked.
303305
*
304306
* @param urlStr the URL to probe
305307
* @param connectTimeout connection timeout in milliseconds
@@ -417,8 +419,8 @@ private boolean isSensitiveAddress(InetAddress address) {
417419
}
418420

419421
/**
420-
* Checks whether an IPv4 address is private or reserved. Any malformed input defaults to
421-
* {@code true} (conservative) to avoid misuse.
422+
* Checks whether an IPv4 address is private or reserved. Any malformed input defaults to {@code
423+
* true} (conservative) to avoid misuse.
422424
*
423425
* @param address 4-byte IPv4 address
424426
* @return {@code true} if private/reserved
@@ -488,8 +490,8 @@ private boolean isUniqueLocalIPv6(byte[] address) {
488490
}
489491

490492
/**
491-
* Checks whether an IPv6 address is an IPv4-mapped address (::ffff:0:0/96). Any malformed
492-
* input defaults to {@code false} (conservative) to avoid misuse.
493+
* Checks whether an IPv6 address is an IPv4-mapped address (::ffff:0:0/96). Any malformed input
494+
* defaults to {@code false} (conservative) to avoid misuse.
493495
*
494496
* @param address 16-byte IPv6 address
495497
* @return {@code true} if IPv4-mapped

0 commit comments

Comments
 (0)