diff --git a/AMWD.Common.AspNetCore/Extensions/ApplicationBuilderExtensions.cs b/AMWD.Common.AspNetCore/Extensions/ApplicationBuilderExtensions.cs
index 34b492f..ab8426e 100644
--- a/AMWD.Common.AspNetCore/Extensions/ApplicationBuilderExtensions.cs
+++ b/AMWD.Common.AspNetCore/Extensions/ApplicationBuilderExtensions.cs
@@ -20,10 +20,14 @@ namespace Microsoft.AspNetCore.Builder
///
/// Additionally you can specify the proxy server by using or a when there are multiple proxy servers.
///
- /// When no oder is set, the default IPv4 private subnets are configured:
+ /// When no oder is set, the default subnets are configured:
+ /// - 127.0.0.0/8
/// - 10.0.0.0/8
/// - 172.16.0.0/12
- /// - 192.168.0.0/16
+ /// - 192.168.0.0/16
+ ///
+ /// - ::1/128
+ /// - fd00::/8
///
/// The application builder.
/// The where proxy requests are received from (optional).
@@ -40,9 +44,17 @@ namespace Microsoft.AspNetCore.Builder
if (network == null && address == null)
{
+ // localhost
+ options.KnownNetworks.Add(new IPNetwork(IPAddress.Parse("127.0.0.0"), 8));
+ options.KnownNetworks.Add(new IPNetwork(IPAddress.Parse("::1"), 128));
+
+ // private IPv4 networks
options.KnownNetworks.Add(new IPNetwork(IPAddress.Parse("10.0.0.0"), 8));
options.KnownNetworks.Add(new IPNetwork(IPAddress.Parse("172.16.0.0"), 12));
options.KnownNetworks.Add(new IPNetwork(IPAddress.Parse("192.168.0.0"), 16));
+
+ // private IPv6 networks
+ options.KnownNetworks.Add(new IPNetwork(IPAddress.Parse("fd00::"), 8));
}
if (network != null)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index afa302f..a4a33b7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Added `ConfigureAwait(false)` to async calls where appropriate
+- Added localhost and private IPv6 subnet to `UseProxyHosting()`
### Changed