aboutsummaryrefslogtreecommitdiff
path: root/src/fw.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/fw.rs')
-rw-r--r--src/fw.rs12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/fw.rs b/src/fw.rs
index 955425a..42ce73a 100644
--- a/src/fw.rs
+++ b/src/fw.rs
@@ -73,15 +73,3 @@ pub fn cleanup(ipt: &iptables::IPTables) -> Result<(), FirewallError> {
Ok(())
}
-/*
-fn main() {
- let ipt = iptables::new(false).unwrap();
- setup(&ipt);
-
- let mut test: HashSet<Port> = HashSet::new();
- test.insert(Port { proto: String::from("tcp"), number: 443 });
- let a = get_opened_ports(&ipt);
- let l = test.difference(&a).collect::<Vec<&Port>>();
- println!("{:?}", l);
-}
-*/