Skip to content

Fix: Filter out empty IP addresses in dnsResolve method - #37778

Closed
w9n wants to merge 1 commit into
nextcloud:masterfrom
w9n:fixdns
Closed

Fix: Filter out empty IP addresses in dnsResolve method#37778
w9n wants to merge 1 commit into
nextcloud:masterfrom
w9n:fixdns

Conversation

@w9n

@w9nw9n commented Apr 17, 2023

Copy link
Copy Markdown

Summary

This commit resolves an issue where empty IP addresses could be returned by the dnsResolve method due to CNAME recursion. The fix filters out empty IP addresses before returning the result, ensuring that only valid, non-empty IP addresses are used in the addDnsPinning method.

TODO

  • ...

Checklist

@szaimenszaimen added this to the Nextcloud 27 milestone Apr 18, 2023
@szaimenszaimen added the 3. to review Waiting for reviews label Apr 18, 2023
@szaimen
szaimen requested review from a team, ArtificialOwl, blizzz and icewind1991 and removed request for a teamApril 18, 2023 00:23
@w9n
w9nforce-pushed the fixdns branch 2 times, most recently from a67f7a3 to d7827d4CompareApril 18, 2023 09:13
Comment threadlib/private/Http/Client/DnsPinMiddleware.php Outdated
This commit resolves an issue where empty IP addresses could be returned by the dnsResolve method due to CNAME recursion. The fix filters out empty IP addresses before returning the result, ensuring that only valid, non-empty IP addresses are used in the addDnsPinning method.
Signed-off-by: Robin Winkelewski <w9ncontact@gmail.com>
@w9n

w9n commented Apr 21, 2023

Copy link
Copy Markdown
Author

sorry I dont know what exactly went wrong with the php dns resolver here. I guess with the "fix" it just uses curls dns resolver when it didnt work.

This was referenced May 3, 2023
@blizzzblizzz mentioned this pull request May 17, 2023
@blizzzblizzz modified the milestones: Nextcloud 27, Nextcloud 28May 23, 2023
@skjnldsvskjnldsv mentioned this pull request Nov 1, 2023
@kesselb

Copy link
Copy Markdown
Contributor

Thanks for your pull request 👍

Replaced by #40234

@kesselbkesselb closed this Nov 1, 2023
@kesselbkesselb removed this from the Nextcloud 28 milestone Nov 1, 2023
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Applications can't be installed/downloaded - cURL error 49: Couldn't parse CURLOPT_RESOLVE

5 participants

@w9n@kesselb@icewind1991@blizzz@szaimen