fix: Only connections from localhost are allowed
Committed / committed (pull_request) Failing after 20s
CI / cargo shear (pull_request) Successful in 5m33s
CI / prek (pull_request) Failing after 6m12s

This commit is contained in:
2026-10-04 05:40:34 +02:00
parent f2c1d53b80
commit 7c7a3f4d14
+2 -2
View File
@@ -37,7 +37,7 @@ where
F: Fn(&str) -> Fut,
Fut: Future<Output = Option<Vec<u8>>>,
{
let socket = UdpSocket::bind("127.0.0.1:0").await?;
let socket = UdpSocket::bind("0.0.0.0:0").await?;
println!(
"{src}: Connecting from {}",
socket.local_addr().expect("Socket is bound")
@@ -150,7 +150,7 @@ where
F: Fn(&str) -> Fut + Clone + Send + 'static,
Fut: Future<Output = Option<Vec<u8>>> + Send + 'static,
{
let socket = UdpSocket::bind("127.0.0.1:69").await?;
let socket = UdpSocket::bind("0.0.0.0:69").await?;
println!("Server started");
loop {