summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 8f501da..7b55131 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -27,6 +27,10 @@ async fn main() {
async fn app() -> Result<()> {
env_logger::init();
+ ctrlc::set_handler(|| {
+ std::process::exit(1);
+ })?;
+
let cli = crate::cli::cli().get_matches();
let bind = cli.value_of("bind").unwrap(); // safe by clap
let port = cli.value_of("port").unwrap(); // safe by clap