开发者

Set IP preference in WinHTTP (c++)

开发者 https://www.devze.com 2023-01-10 08:20 出处:网络
I have a code that is using WinHTTP on Windows 7. The problem i\'m experiencing is that the connction to specific hostname takes a long time when the user tries to use an IPv6 address (that is disabl

I have a code that is using WinHTTP on Windows 7.

The problem i'm experiencing is that the connction to specific hostname takes a long time when the user tries to use an IPv6 address (that is disabled).

I want to configure开发者_JS百科 the connection (maybe WinHttpConnect parametrs) to try IPv4 first.

Is there a way to set the address binding order?


The answer is: You cannot do this.

See Specify which Network Card/Connection Winhttp Must Use

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号