Skip to content

Commit

Permalink
添加session_id
Browse files Browse the repository at this point in the history
  • Loading branch information
Boomboomdunce committed Nov 18, 2024
1 parent c65d225 commit 9ec4eca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/smtp/src/inbound/hooks/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ impl<T: SessionStream> Session<T> {

let request = Request {
context: Context {
session_id: self.data.session_id,
stage: stage.into(),
client: Client {
ip: self.data.remote_ip.to_string(),
Expand Down
1 change: 1 addition & 0 deletions crates/smtp/src/inbound/hooks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ pub struct Request {

#[derive(Serialize, Deserialize)]
pub struct Context {
pub session_id: u64,
pub stage: Stage,
pub client: Client,
#[serde(skip_serializing_if = "Option::is_none")]
Expand Down

0 comments on commit 9ec4eca

Please sign in to comment.