Skip to content

how to set_only_v6 #3175

Answered by taiki-e
FH0 asked this question in Q&A
Nov 24, 2020 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

IIRC, neither tokio::net::TcpListener nor std::net::TcpListener supports this. You probably need to use socket2 crate to create std::net::TcpListener and convert it to tokio::net::TcpListener with from_std function.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by FH0
Comment options

You must be logged in to vote
1 reply
@FH0
Comment options

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