aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 4cdd1d7..9a0be98 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,5 +1,8 @@
use rsdsl_netfilterd::error::Result;
+use std::thread;
+use std::time::Duration;
+
use rustables::{
Batch, Chain, ChainPolicy, ChainType, Hook, HookClass, MsgType, Protocol, ProtocolFamily, Rule,
Table,
@@ -245,5 +248,7 @@ fn main() -> Result<()> {
}
}
- Ok(())
+ loop {
+ thread::sleep(Duration::MAX);
+ }
}