aboutsummaryrefslogtreecommitdiff
path: root/src/netapp.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/netapp.rs')
-rw-r--r--src/netapp.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/netapp.rs b/src/netapp.rs
index eed0f59..0ddd447 100644
--- a/src/netapp.rs
+++ b/src/netapp.rs
@@ -210,7 +210,10 @@ impl NetApp {
let (socket, _) = listener.accept().await.unwrap();
info!(
"Incoming connection from {}, negotiating handshake...",
- socket.peer_addr().unwrap()
+ match socket.peer_addr() {
+ Ok(x) => format!("{}", x),
+ Err(e) => format!("<invalid addr: {}>", e),
+ }
);
let self2 = self.clone();
tokio::spawn(async move {