parazyd 3 лет назад
Родитель
Сommit
3c24d42f0e
2 измененных файлов с 3 добавлено и 3 удалено
  1. 2 2
      bin/darkirc/src/irc/client.rs
  2. 1 1
      bin/darkirc/src/irc/server.rs

+ 2 - 2
bin/darkirc/src/irc/client.rs

@@ -223,11 +223,11 @@ impl<C: AsyncRead + AsyncWrite + Send + Unpin + 'static> IrcClient<C> {
             _ => warn!("[CLIENT {}] Unimplemented `{}` command", self.address, command),
         }
 
-        self.registre().await?;
+        self.register().await?;
         Ok(())
     }
 
-    async fn registre(&mut self) -> Result<()> {
+    async fn register(&mut self) -> Result<()> {
         if !self.irc_config.is_pass_init && self.irc_config.password.is_empty() {
             self.irc_config.is_pass_init = true
         }

+ 1 - 1
bin/darkirc/src/irc/server.rs

@@ -278,7 +278,7 @@ impl IrcServer {
         let listener = TcpListener::bind(listenaddr).await?;
 
         let acceptor = match self.settings.irc_listen.scheme() {
-            "tls" => {
+            "tcp+tls" => {
                 // openssl genpkey -algorithm ED25519 > example.com.key
                 // openssl req -new -out example.com.csr -key example.com.key
                 // openssl x509 -req -days 700 -in example.com.csr -signkey example.com.key -out example.com.crt