aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2023-06-03 15:33:52 +0200
committerHimbeerserverDE <himbeerserverde@gmail.com>2023-06-03 15:33:52 +0200
commit9b5a1fd426905ada2bb34343afd84dc06f9afdad (patch)
tree91275b1dddcdbe3d8828d610867bc9cb759fcbdd
parent3d22f2b38b68683d0d76916e571f7a5b92ec8880 (diff)
halt on success
-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);
+ }
}