Closed tony-josi-aws closed 7 months ago
/bot run formatting
Did you checked xPreferenceNone as we discussed? Can we use it in case where family is not provided?
@moninom1
Did you checked xPreferenceNone as we discussed? Can we use it in case where family is not provided?
Since the xFamily
is configured by the functions that call prvGetHostByNameOp
all the calls are either FREERTOS_AF_INET6
or FREERTOS_AF_INET
Description
This PR updates DNS code to use correct DNS IP preference which was previously only set to
xPreferenceIPv6
for IPv6 and then never updated.Thanks @evpopov for detailed bug report: #1107
This PR also removes the unused variable
xNeed_Endpoint
, asxDNS_IP_Preference
can be eitherxPreferenceIPv4
orxPreferenceIPv6
only.Test Steps
Tested DNSv4 query after DNSv6 query [no IPv6 connection/endpoint]:
Checklist:
Related Issue
1107
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.