mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Added ipresolve options
This commit is contained in:
parent
c40222fb2d
commit
df95dc4666
2 changed files with 7 additions and 0 deletions
|
@ -667,6 +667,12 @@ namespace CURL
|
||||||
SuppressConnectHeaders = cOptionLong + 265,
|
SuppressConnectHeaders = cOptionLong + 265,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public enum IPResolve
|
||||||
|
{
|
||||||
|
V4 = 1,
|
||||||
|
V6 = 2
|
||||||
|
}
|
||||||
|
|
||||||
const int32 cInfoString = 0x100000;
|
const int32 cInfoString = 0x100000;
|
||||||
const int32 cInfoLong = 0x200000;
|
const int32 cInfoLong = 0x200000;
|
||||||
const int32 cInfoDouble = 0x300000;
|
const int32 cInfoDouble = 0x300000;
|
||||||
|
|
|
@ -132,6 +132,7 @@ namespace CURL
|
||||||
mCurl.SetOpt(.FollowLocation, true);
|
mCurl.SetOpt(.FollowLocation, true);
|
||||||
mCurl.SetOpt(.URL, url);
|
mCurl.SetOpt(.URL, url);
|
||||||
mCurl.SetOpt(.NoProgress, false);
|
mCurl.SetOpt(.NoProgress, false);
|
||||||
|
mCurl.SetOpt(.IPResolve, (int)CURL.Easy.IPResolve.V4);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Result<Span<uint8>> Perform()
|
public Result<Span<uint8>> Perform()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue