Skip to content

Commit

Permalink
sync filters at start
Browse files Browse the repository at this point in the history
  • Loading branch information
pythops committed Oct 6, 2024
1 parent 6e9b208 commit 3db3bea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion oryx-tui/src/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ impl Filter {
&mut self,
notification_sender: kanal::Sender<Event>,
data_sender: kanal::Sender<[u8; RawPacket::LEN]>,
) {
) -> AppResult<()> {
let iface = self.interface.selected_interface.name.clone();

self.apply();
Expand Down Expand Up @@ -152,6 +152,10 @@ impl Filter {
self.traffic_direction.terminate_egress.clone(),
);
}

self.sync()?;

Ok(())
}

pub fn trigger(&mut self) {
Expand Down

0 comments on commit 3db3bea

Please sign in to comment.