We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5e562e4 + d23e0bc commit 82689a8Copy full SHA for 82689a8
src/http/trusted_proxies.rs
@@ -8,9 +8,16 @@ pub struct TrustedProxies(Vec<AnyIpCidr>);
8
impl TrustedProxies {
9
pub fn new_local() -> Self {
10
Self(vec![
11
+ // IPV4 Loopback
12
+ AnyIpCidr::from_str("127.0.0.0/8").unwrap(),
13
+ // IPV4 Private Networks
14
AnyIpCidr::from_str("10.0.0.0/8").unwrap(),
15
AnyIpCidr::from_str("172.16.0.0/12").unwrap(),
16
AnyIpCidr::from_str("192.168.0.0/16").unwrap(),
17
+ // IPV6 Loopback
18
+ AnyIpCidr::from_str("::1/128").unwrap(),
19
+ // IPV6 Private network
20
+ AnyIpCidr::from_str("fd00::/8").unwrap(),
21
])
22
}
23
0 commit comments