Skip to content

Commit

Permalink
Gave server more info
Browse files Browse the repository at this point in the history
  • Loading branch information
manforowicz committed Apr 14, 2024
1 parent 890c107 commit 7a32bb0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion gday_contact_exchange_server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion gday_hole_punch/src/server_connector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
};
Expand Down

0 comments on commit 7a32bb0

Please sign in to comment.