diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2019-05-08 22:50:50 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2019-05-08 22:50:50 +0200 |
commit | c1b10fdcf6c3e63238818c79ea25dab5b69658e0 (patch) | |
tree | 3e7d29ee238727ecffbeb900bc2d6c76543bc672 | |
parent | e88cbfe52ba87039cb404dec68c086ad25227efa (diff) | |
download | phisher-c1b10fdcf6c3e63238818c79ea25dab5b69658e0.tar.gz phisher-c1b10fdcf6c3e63238818c79ea25dab5b69658e0.tar.bz2 phisher-c1b10fdcf6c3e63238818c79ea25dab5b69658e0.zip |
Print socket listening addr when ready.
-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) => { |