Skip to content

Commit

Permalink
Don't error on non ipv6 (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanneary authored Jan 9, 2024
1 parent 235ee0a commit f28c373
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions shared/src/server/egress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ pub enum EgressError {
ExtensionMissing,
#[error(transparent)]
DNSParseError(#[from] dns_parser::Error),
#[error("Protocol not support, only IPv4 is supported")]
ProtocolNotSupported,
#[error("Could not obtain lock for IP cache")]
CouldntObtainLock,
}
Expand Down Expand Up @@ -92,7 +90,7 @@ pub fn cache_ip_for_allowlist(packet: &[u8]) -> Result<(), EgressError> {
if let RData::A(ip) = ans.data {
cache_ip(ip.0.to_string(), ans)
} else {
Err(EgressError::ProtocolNotSupported)
Ok(())
}
})
}
Expand Down

0 comments on commit f28c373

Please sign in to comment.