Compare commits
4 commits
Author | SHA1 | Date | |
---|---|---|---|
vanten-s | e4fd3224cf | ||
vanten-s | 5c24ae5f96 | ||
vanten-s | c895210cea | ||
vanten-s | 4aed403c97 |
|
@ -2,6 +2,10 @@
|
|||
name = "e2e-irc"
|
||||
version = "3.0.0"
|
||||
edition = "2021"
|
||||
license = "GPL-3.0"
|
||||
keywords = ["irc", "encryption"]
|
||||
description = "An IRC bouncer that can send encrypted messages"
|
||||
repository = "https://forgejo.vanten-s.com/vanten-s/e2e-irc/"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
|
@ -10,7 +14,7 @@ argparse = "0.2.2"
|
|||
base64 = "0.21.4"
|
||||
dirs = "5.0.1"
|
||||
eyre = "0.6.8"
|
||||
ircparser = { git = "https://forgejo.vanten-s.com/vanten-s/ircparser" }
|
||||
ircparser-vanten = "0.2.1"
|
||||
openssl = "0.10"
|
||||
pgp = "0.10.2"
|
||||
rand = "0.8.5"
|
||||
|
|
|
@ -26,7 +26,7 @@ Optional arguments:
|
|||
|
||||
# Install
|
||||
```bash
|
||||
cargo install --git https://forgejo.vanten-s.com/vanten-s/e2e-irc.git
|
||||
cargo install e2e-irc
|
||||
```
|
||||
|
||||
# Run
|
||||
|
|
|
@ -136,7 +136,7 @@ fn main() -> Result<()> {
|
|||
&writer_channel_rx,
|
||||
&listener_channel_tx,
|
||||
&listener_channel_rx,
|
||||
&mut state,
|
||||
&state,
|
||||
);
|
||||
}
|
||||
Err(error) => match error {
|
||||
|
|
|
@ -26,7 +26,7 @@ pub fn handle_message_from_server(
|
|||
writer_channel_rx: &Receiver<String>,
|
||||
listener_channel_tx: &Sender<String>,
|
||||
_listener_channel_rx: &Receiver<String>,
|
||||
state: &mut State,
|
||||
state: &State,
|
||||
) -> Result<()> {
|
||||
let recieved_parsed = &unwrap_or_return_result!(ircparser::parse(recieved))[0];
|
||||
|
||||
|
@ -39,7 +39,7 @@ pub fn handle_message_from_server(
|
|||
|
||||
if recieved_parsed.command != "PRIVMSG"
|
||||
|| reciever.starts_with('#')
|
||||
|| state.nicks_without_encryption.contains(&reciever)
|
||||
|| state.nicks_without_encryption.contains(reciever)
|
||||
{
|
||||
forward(recieved, listener_channel_tx, server)?;
|
||||
return Ok(());
|
||||
|
|
|
@ -18,7 +18,7 @@ pub fn write_to_server(
|
|||
|
||||
let connector = SslConnector::builder(SslMethod::tls()).unwrap().build();
|
||||
let mut stream = connector
|
||||
.connect(&server, &tcp_stream)
|
||||
.connect(server, &tcp_stream)
|
||||
.expect("Couldn't start TLS");
|
||||
|
||||
stream
|
||||
|
|
Loading…
Reference in a new issue