aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 0b4c77f..3daca07 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -170,7 +170,9 @@ fn main() {
})
.collect::<Result<Vec<SocketAddr>, _>>();
- // Note that this should not fail, since CLI parsing succeeded: valid IpAddr + valid port should imply valid SocketAddr
+ // Note that this should never fail, since CLI parsing succeeded
+ // This means the format of the IP address is valid, and so is the port
+ // Valid IpAddr + valid port == valid SocketAddr
let socket_addresses = socket_addresses.expect("Failed to parse string as socket address");
server::new(move || {