diff --git a/gday_contact_exchange_server/src/main.rs b/gday_contact_exchange_server/src/main.rs index eede965..5831522 100644 --- a/gday_contact_exchange_server/src/main.rs +++ b/gday_contact_exchange_server/src/main.rs @@ -78,7 +78,7 @@ async fn main() { }; // get tcp listener - let tcp_listener = get_tcp_listener(addr).await; + let tcp_listener = get_tcp_listener(&addr).await; // get the TLS acceptor if applicable let tls_acceptor = if let (Some(k), Some(c)) = (args.key, args.certificate) { @@ -91,6 +91,8 @@ async fn main() { let state = State::new(args.request_limit, args.timeout); info!("Server started."); + info!("Listening on {addr}."); + info!("Is encrypted?: {}", !args.unencrypted); loop { // try to accept another connection diff --git a/gday_hole_punch/src/server_connector.rs b/gday_hole_punch/src/server_connector.rs index 88371ad..8069c10 100644 --- a/gday_hole_punch/src/server_connector.rs +++ b/gday_hole_punch/src/server_connector.rs @@ -201,7 +201,7 @@ pub fn connect_to_random_domain_name( Ok(streams) => streams, Err(err) => { recent_error = err; - error!("Couldn't connect to \"{}\": {}", server, recent_error); + error!("Couldn't connect to \"{server}:{DEFAULT_TLS_PORT}\": {recent_error}"); continue; } };