Compare commits

...

1 Commits

Author SHA1 Message Date
mirsal 9c0bc7c5c1 Bind to IPv6
The Future
2021-03-29 19:56:45 +00:00
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 {