From c1b10fdcf6c3e63238818c79ea25dab5b69658e0 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Wed, 8 May 2019 22:50:50 +0200 Subject: Print socket listening addr when ready. --- src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index d2198e1..ab9f095 100644 --- a/src/main.rs +++ b/src/main.rs @@ -55,7 +55,11 @@ fn main() { } fn run_server(tank: Arc) -> Result<(), Box> { - let listener = UnixListener::bind("/tmp/phisher")?; + let bind_address = "/tmp/phisher"; + let listener = UnixListener::bind(&bind_address)?; + + println!("Listening for connections on {}...", &bind_address); + for stream in listener.incoming() { match stream { Ok(stream) => { -- cgit v1.2.3