diff --git a/src/app.rs b/src/app.rs index 96a5be3..edc8403 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1,3 +1,20 @@ +/* + * mCaptcha - A proof of work based DoS protection system + * Copyright © 2023 Aravinth Manivannan + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ use std::sync::Arc; use openraft::Config; diff --git a/src/bin/main.rs b/src/bin/main.rs index bd79839..78d9374 100644 --- a/src/bin/main.rs +++ b/src/bin/main.rs @@ -1,3 +1,20 @@ +/* + * mCaptcha - A proof of work based DoS protection system + * Copyright © 2023 Aravinth Manivannan + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ use clap::Parser; use dcache::network::raft_network_impl::ExampleNetwork; use dcache::start_example_raft_node; diff --git a/src/client.rs b/src/client.rs index 21e30b0..b3c3749 100644 --- a/src/client.rs +++ b/src/client.rs @@ -1,3 +1,20 @@ +/* + * mCaptcha - A proof of work based DoS protection system + * Copyright © 2023 Aravinth Manivannan + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ use std::collections::BTreeSet; use std::sync::Arc; use std::sync::Mutex; diff --git a/src/lib.rs b/src/lib.rs index b74a119..af5e25e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,20 @@ +/* + * mCaptcha - A proof of work based DoS protection system + * Copyright © 2023 Aravinth Manivannan + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ #![allow(clippy::uninlined_format_args)] use std::sync::Arc; diff --git a/src/network/api.rs b/src/network/api.rs index 36a96dd..ce7cdf2 100644 --- a/src/network/api.rs +++ b/src/network/api.rs @@ -1,3 +1,20 @@ +/* + * mCaptcha - A proof of work based DoS protection system + * Copyright © 2023 Aravinth Manivannan + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ use actix_web::post; use actix_web::web; use actix_web::web::Data; diff --git a/src/network/management.rs b/src/network/management.rs index c81e48f..1af82df 100644 --- a/src/network/management.rs +++ b/src/network/management.rs @@ -1,3 +1,20 @@ +/* + * mCaptcha - A proof of work based DoS protection system + * Copyright © 2023 Aravinth Manivannan + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ use std::collections::BTreeMap; use std::collections::BTreeSet; diff --git a/src/network/mod.rs b/src/network/mod.rs index aa89c6e..555eefa 100644 --- a/src/network/mod.rs +++ b/src/network/mod.rs @@ -1,3 +1,20 @@ +/* + * mCaptcha - A proof of work based DoS protection system + * Copyright © 2023 Aravinth Manivannan + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ pub mod api; pub mod management; pub mod raft; diff --git a/src/network/raft.rs b/src/network/raft.rs index d5ac59c..aa2a384 100644 --- a/src/network/raft.rs +++ b/src/network/raft.rs @@ -1,3 +1,20 @@ +/* + * mCaptcha - A proof of work based DoS protection system + * Copyright © 2023 Aravinth Manivannan + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ use actix_web::post; use actix_web::web; use actix_web::web::Data; diff --git a/src/network/raft_network_impl.rs b/src/network/raft_network_impl.rs index a2f4de0..4a5a9bf 100644 --- a/src/network/raft_network_impl.rs +++ b/src/network/raft_network_impl.rs @@ -1,3 +1,20 @@ +/* + * mCaptcha - A proof of work based DoS protection system + * Copyright © 2021 Aravinth Manivannan + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ use async_trait::async_trait; use openraft::error::InstallSnapshotError; use openraft::error::NetworkError; diff --git a/src/store/mod.rs b/src/store/mod.rs index 49a6022..2f7aa1e 100644 --- a/src/store/mod.rs +++ b/src/store/mod.rs @@ -1,3 +1,20 @@ +/* + * mCaptcha - A proof of work based DoS protection system + * Copyright © 2023 Aravinth Manivannan + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ use std::collections::BTreeMap; use std::collections::HashMap; use std::fmt::Debug; diff --git a/src/store/system.rs b/src/store/system.rs index 416da50..30d223c 100644 --- a/src/store/system.rs +++ b/src/store/system.rs @@ -1,3 +1,20 @@ +/* + * mCaptcha - A proof of work based DoS protection system + * Copyright © 2023 Aravinth Manivannan + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ use std::sync::Arc; use actix::prelude::*;