Enforce network IP restriction

This commit is contained in:
2025-01-30 22:06:17 +01:00
parent 501520a9df
commit af1dd4d122
4 changed files with 41 additions and 4 deletions

12
Cargo.lock generated
View File

@ -68,6 +68,17 @@ dependencies = [
"syn",
]
[[package]]
name = "actix-remote-ip"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7629b357d4705cf3f1e31f989f48ecd56027112f7d52dcf06dd96ee197065f8e"
dependencies = [
"actix-web",
"futures-util",
"log",
]
[[package]]
name = "actix-router"
version = "0.5.3"
@ -1887,6 +1898,7 @@ checksum = "04cbf5b083de1c7e0222a7a51dbfdba1cbe1c6ab0b15e29fff3f6c077fd9cd9f"
name = "matrix_gateway"
version = "0.1.0"
dependencies = [
"actix-remote-ip",
"actix-session",
"actix-web",
"anyhow",