2021-09-18 10:52:07 +00:00
|
|
|
--- a/Utilities/cmcurl/CMakeLists.txt
|
|
|
|
+++ b/Utilities/cmcurl/CMakeLists.txt
|
2022-07-14 12:49:19 +00:00
|
|
|
@@ -391,13 +391,6 @@ if(ENABLE_IPV6 AND NOT WIN32)
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND NOT ENABLE_ARES)
|
|
|
|
set(use_core_foundation ON)
|
|
|
|
-
|
|
|
|
- find_library(SYSTEMCONFIGURATION_FRAMEWORK "SystemConfiguration")
|
|
|
|
- if(NOT SYSTEMCONFIGURATION_FRAMEWORK)
|
|
|
|
- message(FATAL_ERROR "SystemConfiguration framework not found")
|
|
|
|
- endif()
|
2021-09-18 10:52:07 +00:00
|
|
|
-
|
2022-07-14 12:49:19 +00:00
|
|
|
- list(APPEND CURL_LIBS "-framework SystemConfiguration")
|
|
|
|
endif()
|
|
|
|
endif()
|
2022-01-13 20:06:32 +00:00
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
--- a/Utilities/cmcurl/lib/curl_setup.h
|
|
|
|
+++ b/Utilities/cmcurl/lib/curl_setup.h
|
2022-01-13 20:06:32 +00:00
|
|
|
@@ -257,11 +257,7 @@
|
2021-09-18 10:52:07 +00:00
|
|
|
* performing this task will result in a synthesized IPv6 address.
|
|
|
|
*/
|
|
|
|
#if defined(__APPLE__) && !defined(USE_ARES)
|
|
|
|
-#include <TargetConditionals.h>
|
|
|
|
#define USE_RESOLVE_ON_IPS 1
|
|
|
|
-# if defined(TARGET_OS_OSX) && TARGET_OS_OSX
|
|
|
|
-# define CURL_OSX_CALL_COPYPROXIES 1
|
|
|
|
-# endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef USE_LWIPSOCK
|
|
|
|
--- a/Utilities/cmcurl/lib/hostip.c
|
|
|
|
+++ b/Utilities/cmcurl/lib/hostip.c
|
|
|
|
@@ -68,10 +68,6 @@
|
|
|
|
#include "curl_memory.h"
|
|
|
|
#include "memdebug.h"
|
|
|
|
|
|
|
|
-#if defined(ENABLE_IPV6) && defined(CURL_OSX_CALL_COPYPROXIES)
|
|
|
|
-#include <SystemConfiguration/SCDynamicStoreCopySpecific.h>
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
#if defined(CURLRES_SYNCH) && \
|
|
|
|
defined(HAVE_ALARM) && defined(SIGALRM) && defined(HAVE_SIGSETJMP)
|
|
|
|
/* alarm-based timeouts can only be used with all the dependencies satisfied */
|
2022-07-14 12:49:19 +00:00
|
|
|
@@ -661,23 +657,6 @@ enum resolve_t Curl_resolv(struct Curl_easy *data,
|
2021-09-18 10:52:07 +00:00
|
|
|
return CURLRESOLV_ERROR;
|
|
|
|
}
|
|
|
|
|
|
|
|
-#if defined(ENABLE_IPV6) && defined(CURL_OSX_CALL_COPYPROXIES)
|
2022-01-13 20:06:32 +00:00
|
|
|
- {
|
|
|
|
- /*
|
|
|
|
- * The automagic conversion from IPv4 literals to IPv6 literals only
|
|
|
|
- * works if the SCDynamicStoreCopyProxies system function gets called
|
|
|
|
- * first. As Curl currently doesn't support system-wide HTTP proxies, we
|
|
|
|
- * therefore don't use any value this function might return.
|
|
|
|
- *
|
|
|
|
- * This function is only available on a macOS and is not needed for
|
|
|
|
- * IPv4-only builds, hence the conditions above.
|
|
|
|
- */
|
|
|
|
- CFDictionaryRef dict = SCDynamicStoreCopyProxies(NULL);
|
|
|
|
- if(dict)
|
|
|
|
- CFRelease(dict);
|
|
|
|
- }
|
2021-09-18 10:52:07 +00:00
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
#ifndef USE_RESOLVE_ON_IPS
|
|
|
|
/* First check if this is an IPv4 address string */
|
|
|
|
if(Curl_inet_pton(AF_INET, hostname, &in) > 0)
|