Bind on everything

This commit is contained in:
abbie 2021-10-16 15:20:33 +01:00
parent 96189b04ad
commit a6f5fba33b
No known key found for this signature in database
GPG key ID: 04DDE463F9200F87

View file

@ -145,7 +145,7 @@ fn serve(mut stream: TcpStream) {
fn main() -> std::io::Result<()> { fn main() -> std::io::Result<()> {
let listen = TcpListener::bind("127.0.0.1:8080")?; let listen = TcpListener::bind("0.0.0.0:8080")?;
for stream in listen.incoming() { for stream in listen.incoming() {
println!("Serving incoming stream."); println!("Serving incoming stream.");