Bind to IPv6

The Future
This commit is contained in:
mirsal 2021-03-28 08:31:32 +00:00
parent 3195de3d5f
commit 9c0bc7c5c1
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ async fn main() -> std::io::Result<()> {
let keypair = Keypair::read_or_generate(path.join("secret")).await;
println!("{}", keypair.to_json().pretty(2));
let socket = UdpSocket::bind("0.0.0.0:8008").await?;
let socket = UdpSocket::bind(":::8008").await?;
let mut buf = [0u8; 1024];
loop {