Support option to resolve hostname as IPv6 with esp_tls_conn_new_xxxx() (IDFGH-8458) #9920
Labels
Awaiting Response
awaiting a response from the author
Resolution: Done
Issue is done internally
Status: Done
Issue is done internally
Type: Feature Request
Feature request for IDF
Is your feature request related to a problem?
esp_tls_conn_new_xxxx()
cannot resolve hostname as IPv6 now. Becauseesp_tls_hostname_to_fd()
that is called inside of it callsgetaddrinfo()
with fixed option:hints.ai_family = AF_UNSPEC
.getaddrinfo()
withAF_UNSPEC
try to resolve hostname as IPv4 even when IPv4 address is not acquired (e.g. even on IPv6 only network).esp-idf/components/esp-tls/esp_tls.c
Lines 142 to 156 in 495d359
Describe the solution you'd like.
Could you support an option to
esp_tls_conn_new_xxxx()
to set how to resolve hostname (e.g. AF_UNSPEC, AF_INET, AF_INET6, etc.) ?Describe alternatives you've considered.
No response
Additional context.
The text was updated successfully, but these errors were encountered: