Skip to content

Commit

Permalink
cleaning up comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ramfox committed Jun 13, 2023
1 parent 0b8f9f8 commit 2e36827
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/bin/derper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ struct Cli {
/// `<hostname>.key`, with the `<hostname>` being the escaped hostname.
#[clap(long, value_enum, default_value_t = CertMode::LetsEncrypt)]
cert_mode: CertMode,
/// Whether to use the LetsEncrypt production or staging server. While in developement,
/// LetsEncrypt prefers you to use the staging server. However, the staging server seems to
/// Whether to use the LetsEncrypt production or staging server.
///
/// While in developement, LetsEncrypt prefers you to use the staging server. However, the staging server seems to
/// only use `ECDSA` keys. In their current set up, you can only get intermediate certificates
/// for `ECDSA` keys if you are on their "allowlist". The production server uses `RSA` keys,
/// which allow for issuing intermediate certificates in all normal circumstances.
Expand Down
2 changes: 1 addition & 1 deletion src/hp/derp/http/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ where
conn_handler.accept(io).await
}

#[derive(Debug)]
/// A Derp Server handler. Created using `Server::Builder::spawn`, it starts a derp server
/// listening over HTTP or HTTPS.
#[derive(Debug)]
pub struct Server {
addr: SocketAddr,
server: Option<crate::hp::derp::server::Server<HttpClient>>,
Expand Down
1 change: 1 addition & 0 deletions src/hp/magicsock/conn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,7 @@ impl Actor {
}
}
Some(msg) = self.ip_receiver.recv() => {
trace!("tick: ip_receiver");
match msg {
IpPacket::Disco { source, sealed_box, src } => {
self.handle_disco_message(source, &sealed_box, src, None).await;
Expand Down

0 comments on commit 2e36827

Please sign in to comment.