aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh <josh.t.richards@gmail.com>2024-05-22 10:33:13 -0400
committerGitHub <noreply@github.com>2024-05-22 10:33:13 -0400
commitab5a25104b6c47816b5a14ac23026a772009a927 (patch)
tree4713ef68a7f695570ca79dc869f2cb5956aee0ed
parent116197e25030b002145e5257365576c26f1402d2 (diff)
downloadnextcloud-server-jtr/dns-noisy-dns-get-record.tar.gz
nextcloud-server-jtr/dns-noisy-dns-get-record.zip
Update DnsPinMiddleware.phpjtr/dns-noisy-dns-get-record
Signed-off-by: Josh <josh.t.richards@gmail.com>
-rw-r--r--lib/private/Http/Client/DnsPinMiddleware.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/Http/Client/DnsPinMiddleware.php b/lib/private/Http/Client/DnsPinMiddleware.php
index 2a0cfd23278..28901aeeae9 100644
--- a/lib/private/Http/Client/DnsPinMiddleware.php
+++ b/lib/private/Http/Client/DnsPinMiddleware.php
@@ -119,6 +119,8 @@ class DnsPinMiddleware {
// don't bother retreiving RRs via the noiser dns_get_record() if there aren't any to retrieve
if (\checkdnsrr($hostname, "ANY") !== false) {
return \dns_get_record($hostname, $type);
+ } else {
+ return false;
}
}