aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.rs10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/main.rs b/src/main.rs
index 2c28e62..73519d8 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -81,16 +81,8 @@ fn main() -> Result<()> {
watcher.watch(ip_config, RecursiveMode::NonRecursive)?;
- // loop {
- // thread::sleep(Duration::MAX)
- // }
-
- let sock = std::net::UdpSocket::bind("[::]:0")?;
loop {
- sock.send_to(&[0x13, 0x37, 0x41, 0x42], "[2001:4860:4860::8888]:1337")?;
- sock.send_to(&[0xca, 0xfe, 0xaf, 0xfe], "[2001:470:1f0a:8b9::1]:1337")?;
-
- thread::sleep(Duration::from_secs(1));
+ thread::sleep(Duration::MAX)
}
}