Browse Source

Added ipresolve options

Brian Fiete 4 years ago
parent
commit
df95dc4666
2 changed files with 7 additions and 0 deletions
  1. 6 0
      BeefLibs/curl/src/Curl.bf
  2. 1 0
      BeefLibs/curl/src/Transfer.bf

+ 6 - 0
BeefLibs/curl/src/Curl.bf

@@ -667,6 +667,12 @@ namespace CURL
 			SuppressConnectHeaders = cOptionLong + 265,
 		}
 
+		public enum IPResolve
+		{
+			V4 = 1,
+			V6 = 2
+		}
+
 		const int32 cInfoString   = 0x100000;
 		const int32 cInfoLong     = 0x200000;
 		const int32 cInfoDouble   = 0x300000;

+ 1 - 0
BeefLibs/curl/src/Transfer.bf

@@ -132,6 +132,7 @@ namespace CURL
 			mCurl.SetOpt(.FollowLocation, true);
 			mCurl.SetOpt(.URL, url);
 			mCurl.SetOpt(.NoProgress, false);
+			mCurl.SetOpt(.IPResolve, (int)CURL.Easy.IPResolve.V4);
 		}
 
 		public Result<Span<uint8>> Perform()