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

怎么改成ipv6适用? #1

Open
335555 opened this issue Apr 24, 2024 · 0 comments
Open

怎么改成ipv6适用? #1

335555 opened this issue Apr 24, 2024 · 0 comments

Comments

@335555
Copy link

335555 commented Apr 24, 2024

更改了以下代码

serv_addr.sin_family = AF_INET6;
serv_addr.sin_addr.s_addr = inet_addr("::1");

报错:socket bind error: Address family not supported by protocol
我是在wsl下运行的代码,这个环境可以ping通ipv6网址,请问我需要进行那些尝试?

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

No branches or pull requests

1 participant