shellrow/netdev

a strange bug?

Closed this issue · 2 comments

qhlai commented

sorry to bother you.
my environment:

Windows 11 21H2 22000.493
rustup 1.24.3 (ce5817a94 2021-05-31)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active rustc version is rustc 1.58.1 (db9d1b20b 2022-01-20)
vscode
China mainland with proxy software.

detail:
when compiling my project, i find a strange bug from your project.
my code [example]:
mycode
always show:
error display
and I found your project level by level finally.
the code which may have problem in my PC as follows. but i can't find a problem.

OK:
图片
Failed:
图片

i change the "1.1.1.1:80" to other ip which is not polluted by gov, still compile failed.

Thank you for opening the issue.
Sorry, as of v0.8.0, Windows 11 is not supported.
I just tested it on a Windows 11 VM and the problem was reproduced.

This was caused by memory access violation when attempting to get the IP address of an invalid adapter in an IP Helper API call using windows-rs. (Contains unsafe code)

This will be fixed in the next patch version (v0.8.1).

v0.8.1 is now available.
Add filter for adapter type to avoid this memory access violation.

This patch is a fix for Windows and tested on the following versions

  • Windows 10 21H2 19044.1526
  • Windows 11 21H2 22000.493 (VM)