diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..5706042 --- /dev/null +++ b/LICENSE @@ -0,0 +1,24 @@ +BSD 2-Clause License + +Copyright (c) 2024, Love Billenius + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/src/cloudflare.rs b/src/cloudflare.rs index fc31d8f..d3b043c 100644 --- a/src/cloudflare.rs +++ b/src/cloudflare.rs @@ -1,3 +1,5 @@ +// SPDX: BSD-2-Clause + use anyhow::{Context, Result}; use log::{error, info}; use reqwest::Client; diff --git a/src/config.rs b/src/config.rs index 1d2cf72..e12c01d 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1,3 +1,5 @@ +// SPDX: BSD-2-Clause + use anyhow; use dirs; use log::warn; diff --git a/src/lib.rs b/src/lib.rs index 27b1892..bd6adfd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,5 @@ +// SPDX: BSD-2-Clause + mod cloudflare; mod config; mod logging; diff --git a/src/logging.rs b/src/logging.rs index 697fd27..5d75c55 100644 --- a/src/logging.rs +++ b/src/logging.rs @@ -1,3 +1,5 @@ +// SPDX: BSD-2-Clause + use chrono::Local; use colored::*; use log::LevelFilter; diff --git a/src/main.rs b/src/main.rs index 5999806..d8863ea 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,5 @@ +// SPDX: BSD-2-Clause + use std::sync::{ atomic::{AtomicBool, Ordering}, Arc, diff --git a/src/message_handler.rs b/src/message_handler.rs index a2a229e..d51a017 100644 --- a/src/message_handler.rs +++ b/src/message_handler.rs @@ -1,3 +1,5 @@ +// SPDX: BSD-2-Clause + use std::fmt; use log::{debug, error, info}; diff --git a/src/public_ip.rs b/src/public_ip.rs index 8d67a3f..2ba559c 100644 --- a/src/public_ip.rs +++ b/src/public_ip.rs @@ -1,3 +1,5 @@ +// SPDX: BSD-2-Clause + use anyhow::{anyhow, Context, Result}; use log::error; use reqwest::Client; diff --git a/src/utils.rs b/src/utils.rs index fe6604d..62fb185 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -1,3 +1,5 @@ +// SPDX: BSD-2-Clause + use crate::{get_config_path, read_config, Config}; use log::error;