summaryrefslogtreecommitdiff
path: root/src/plugin/example.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugin/example.rs')
-rw-r--r--src/plugin/example.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugin/example.rs b/src/plugin/example.rs
index b453660..d1f6b46 100644
--- a/src/plugin/example.rs
+++ b/src/plugin/example.rs
@@ -53,7 +53,7 @@ impl EventHandle for ExamplePulgin {
match event {
Event::TcpOpeningEvent => {
println!("{} handle TcpOpeningEvent: {:?}", self.plugin_name, session);
- let (src_port, dst_port) = packet.unwrap().get_inner_port().unwrap();
+ let (src_port, dst_port) = packet.unwrap().get_inner_most_port().unwrap();
if src_port == 80 || dst_port == 80 {
println!("{} add HttpRequestEvent", self.plugin_name);
queue.add(Event::HttpRequestEvent, Some(session));