diff options
-rw-r--r-- | src/main.rs | 6 |
1 files changed, 5 insertions, 1 deletions
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<phisher::PhishTank>) -> Result<(), Box<dyn Error>> { - 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) => { |