diff --git a/proxmox/src/api/rpc_environment.rs b/proxmox/src/api/rpc_environment.rs index 1b689289..430f3a6c 100644 --- a/proxmox/src/api/rpc_environment.rs +++ b/proxmox/src/api/rpc_environment.rs @@ -19,6 +19,16 @@ pub trait RpcEnvironment: std::any::Any + AsAny + Send { /// Get user name fn get_user(&self) -> Option; + + /// Set the client IP, should be re-set if a proxied connection was detected + fn set_client_ip(&mut self, _client_ip: Option) { + // dummy no-op implementation, as most environments don't need this + } + + /// Get the (real) client IP + fn get_client_ip(&self) -> Option { + None // dummy no-op implementation, as most environments don't need this + } } /// Environment Type