pub struct SsrfGuardConfig {
pub block_private: bool,
pub blocklist: HashSet<String>,
pub allowlist: HashSet<String>,
pub url_keys: Vec<String>,
}Expand description
Configuration for SSRF protection.
Fields§
§block_private: boolBlock requests to private/loopback IPs (default: true).
blocklist: HashSet<String>Additional hostnames to block.
allowlist: HashSet<String>Hostnames that are always allowed (overrides block_private for these).
url_keys: Vec<String>Tool argument keys that contain URLs to inspect.
Trait Implementations§
Source§impl Clone for SsrfGuardConfig
impl Clone for SsrfGuardConfig
Source§fn clone(&self) -> SsrfGuardConfig
fn clone(&self) -> SsrfGuardConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SsrfGuardConfig
impl Debug for SsrfGuardConfig
Auto Trait Implementations§
impl Freeze for SsrfGuardConfig
impl RefUnwindSafe for SsrfGuardConfig
impl Send for SsrfGuardConfig
impl Sync for SsrfGuardConfig
impl Unpin for SsrfGuardConfig
impl UnsafeUnpin for SsrfGuardConfig
impl UnwindSafe for SsrfGuardConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more