Browse Source

print address when sending of response failed

master
Miroslav Lichvar 3 years ago
parent
commit
4343d68c32
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/main.rs

+ 2
- 1
src/main.rs View File

@ -327,7 +327,8 @@ impl NtpServer {
println!("Thread #{} sent {:?}", thread_id, response);
}
},
Err(e) => println!("Thread #{} failed to send packet: {}", thread_id, e)
Err(e) => println!("Thread #{} failed to send packet to {}: {}",
thread_id, response.remote_addr, e)
}
},
None => {}


Loading…
Cancel
Save