1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Added ipresolve options

This commit is contained in:
Brian Fiete 2020-11-21 07:10:09 -08:00
parent c40222fb2d
commit df95dc4666
2 changed files with 7 additions and 0 deletions

View file

@ -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;

View file

@ -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()