|
#if (IPV4_SUPPORT == ENABLED) |
We had a situation where one of our cellular modems would receive an IPV6 before an IPV4 address which would trigger a DNS lookup on our side. The issue was that getHostByName defaults to IPV4 when both IPV4 and IPV6 are enabled which causes getHostByName to fail.
Can checking of address type be added here?
CycloneTCP/core/socket.c
Line 1086 in 21fb936
We had a situation where one of our cellular modems would receive an IPV6 before an IPV4 address which would trigger a DNS lookup on our side. The issue was that getHostByName defaults to IPV4 when both IPV4 and IPV6 are enabled which causes getHostByName to fail.
Can checking of address type be added here?