| |
if(!dnscache)
|
| |
goto error;
|
| |
|
| - |
/* We should intentionally error and not resolve .onion TLDs */
|
| |
hostname_len = strlen(hostname);
|
| - |
<<<<<<< HEAD
|
| - |
=======
|
| |
DEBUGASSERT(hostname_len);
|
| - |
if(hostname_len >= 7 &&
|
| - |
(curl_strequal(&hostname[hostname_len - 6], ".onion") ||
|
| - |
curl_strequal(&hostname[hostname_len - 7], ".onion."))) {
|
| - |
failf(data, "Not resolving .onion address (RFC 7686)");
|
| - |
goto error;
|
| - |
}
|
| - |
>>>>>>> 2d18505bf79a2eb87e2e72bbc3e30b0cf7f6b15c
|
| |
|
| |
/* Let's check our DNS cache first */
|
| |
dnscache_lock(data, dnscache);
|