tell which port is listening

This commit is contained in:
Alex Janka 2022-02-23 15:30:49 +11:00
parent 6bf4136ad8
commit f38c03ce0f

View file

@ -165,6 +165,7 @@ fn main() {
fs::create_dir_all(folder_path).expect("couldnt create log directory!");
let socket = UdpSocket::bind(ip).expect("couldnt bind");
println!("Listening on port {}", args.port);
let mut buf = [0; 500];
let mut writer = csv::Writer::from_writer(tempfile().expect("couldnt open tempfile"));