Skip to content

Commit

Permalink
allow_deletes will now be reflected in the server's HelloResult r…
Browse files Browse the repository at this point in the history
…esponse (#147)

* lumen: move server logic to server.rs

* rpc messages: rename RpcHello fields

* clippy fix

* IDA8.3+: set 0x02 features if allow_deletes is enabled

* clippy fix
  • Loading branch information
naim94a authored Mar 17, 2024
1 parent 2b55ae3 commit a36bafc
Show file tree
Hide file tree
Showing 4 changed files with 536 additions and 528 deletions.
2 changes: 1 addition & 1 deletion common/src/config.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use serde::{Deserialize, Deserializer};
use serde::Deserialize;
use std::time::Duration;
use std::{net::SocketAddr, path::PathBuf};
use toml::from_str;
Expand Down
14 changes: 7 additions & 7 deletions common/src/rpc/messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@ pub struct DelHistoryResult {

#[derive(Debug, Deserialize, Serialize)]
pub struct HelloResult<'a> {
pub unk0: Cow<'a, str>,
pub unk1: Cow<'a, str>,
pub unk2: Cow<'a, str>,
pub unk3: Cow<'a, str>,
pub unk4: u32,
pub unk5: u64,
pub unk6: u32,
pub id: Cow<'a, str>,
pub username: Cow<'a, str>,
pub email: Cow<'a, str>,
pub lic_id: Cow<'a, str>,
pub karma: u32,
pub last_active: u64,
pub features: u32,
}

#[derive(Debug, Deserialize, Serialize)]
Expand Down
Loading

0 comments on commit a36bafc

Please sign in to comment.