diff options
author | metamuffin <metamuffin@disroot.org> | 2025-03-31 19:45:31 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-03-31 19:45:31 +0200 |
commit | dd105f82d89070c6929f070a87848b9a9ac8799a (patch) | |
tree | 48395074f0c662d51d6a6cc95d0347ecca3614c5 /src/config.rs | |
parent | 939091713a21ac6e508ef365f8ee9f258f6d50f8 (diff) | |
download | gnix-dd105f82d89070c6929f070a87848b9a9ac8799a.tar gnix-dd105f82d89070c6929f070a87848b9a9ac8799a.tar.bz2 gnix-dd105f82d89070c6929f070a87848b9a9ac8799a.tar.zst |
add source_ip_from_header option
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs index 4d47757..9473784 100644 --- a/src/config.rs +++ b/src/config.rs @@ -37,6 +37,8 @@ pub struct Config { pub private_key: [u8; 32], #[serde(default)] pub limits: Limits, + #[serde(default)] + pub source_ip_from_header: bool, pub handler: DynNode, #[serde(default)] pub disable_server_header: bool, |