Bind to IPv6

The Future
This commit is contained in:
mirsal 2021-03-28 08:31:32 +00:00
parent 749cf151bf
commit 0405ec3b16
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ async fn main() {
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.unwrap();
let socket = UdpSocket::bind(":::8008").await.unwrap();
let mut buf = [0u8; 1024];
loop {