diff --git a/oryx-tui/src/ebpf.rs b/oryx-tui/src/ebpf.rs index 4a55c30..fe2b286 100644 --- a/oryx-tui/src/ebpf.rs +++ b/oryx-tui/src/ebpf.rs @@ -116,12 +116,7 @@ fn update_ipv4_blocklist( } } } - } - // no hashmap entry, create new blocklist - else { - // shouldn't be disabling if blocklist is empty - assert!(enabled); - + } else if enabled { let mut blocked_ports: [u16; 32] = [0; 32]; match port { BlockedPort::Single(port) => { @@ -189,12 +184,7 @@ fn update_ipv6_blocklist( } } } - } - // no hashmap entry, create new blocklist - else { - // shouldn't be disabling if blocklist is empty - assert!(enabled); - + } else if enabled { let mut blocked_ports: [u16; 32] = [0; 32]; match port { BlockedPort::Single(port) => {