Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use winapi instead of registry #3

Merged
merged 13 commits into from
Dec 1, 2023
Merged

Conversation

@greenhat616
Copy link
Contributor Author

系统调用总是返回“参数错误”,目前无法定位是 windows-rs 的问题,还是实现有问题。
https://stackoverflow.com/questions/77565138/why-internetsetoptionw-with-internet-option-per-connection-option-always-return?noredirect=1#comment136742493_77565138

@Pylogmon
Copy link
Contributor

测试完好像是bypass有格式要求,需要用 ; 连接,并且不支持 127.0.0.1/8 这种格式,建议查一下文档做一下错误处理。

@greenhat616
Copy link
Contributor Author

测试完好像是bypass有格式要求,需要用 ; 连接,并且不支持 127.0.0.1/8 这种格式,建议查一下文档做一下错误处理。

确实,感谢提醒。win 用 ; 分割,而且是和 JB 那套一样的,用 * 代表泛匹配。我尝试修复下看看。

@greenhat616 greenhat616 marked this pull request as draft November 29, 2023 10:54
@greenhat616 greenhat616 marked this pull request as ready for review November 29, 2023 16:46
@greenhat616
Copy link
Contributor Author

暂时没有写 x.* -> cidr 的接口,以及尚不支持 ipv6 cidr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants