Bind on everything
This commit is contained in:
parent
96189b04ad
commit
a6f5fba33b
1 changed files with 1 additions and 1 deletions
|
@ -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.");
|
||||||
|
|
Loading…
Reference in a new issue