diff --git a/Cargo.lock b/Cargo.lock index 21145c2..569b2a9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -320,7 +320,7 @@ checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f" [[package]] name = "lonelyradio" -version = "0.1.2" +version = "0.1.3" dependencies = [ "chrono", "clap", diff --git a/Cargo.toml b/Cargo.toml index 274cc32..6bf6e25 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "lonelyradio" description = "TCP radio for singles" -version = "0.1.2" +version = "0.1.3" edition = "2021" license = "MIT" authors = [ "Ivan Bushchik " ] diff --git a/src/main.rs b/src/main.rs index eae6de4..66f6907 100644 --- a/src/main.rs +++ b/src/main.rs @@ -58,9 +58,10 @@ async fn stream(mut s: TcpStream) { 'track: loop { let track = pick_track(&tracklist); println!( - "[{}] {} to {}", + "[{}] {} to {}:{}", Local::now().to_rfc3339(), track.to_str().unwrap(), + s.peer_addr().unwrap().ip().to_string(), s.peer_addr().unwrap().port() ); let file = Box::new(std::fs::File::open(track).unwrap());