aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2019-05-08 22:50:50 +0200
committerHarald Eilertsen <haraldei@anduin.net>2019-05-08 22:50:50 +0200
commitc1b10fdcf6c3e63238818c79ea25dab5b69658e0 (patch)
tree3e7d29ee238727ecffbeb900bc2d6c76543bc672 /src/main.rs
parente88cbfe52ba87039cb404dec68c086ad25227efa (diff)
downloadphisher-c1b10fdcf6c3e63238818c79ea25dab5b69658e0.tar.gz
phisher-c1b10fdcf6c3e63238818c79ea25dab5b69658e0.tar.bz2
phisher-c1b10fdcf6c3e63238818c79ea25dab5b69658e0.zip
Print socket listening addr when ready.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
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) => {