1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-22 04:17:03 +00:00

add some defaults to the private subnets

Former-commit-id: 5ebd12074b792584541bf116c883b901ea52c77c
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-06-11 15:18:34 +03:00
parent b4fcaab459
commit 9f4f4a2f49
2 changed files with 88 additions and 31 deletions

View File

@@ -120,12 +120,6 @@ type ConfigurationReadOnly interface {
// They are used to be compared against
// IP Addresses fetched through `RemoteAddrHeaders` or `Request.RemoteAddr`.
// For details please navigate through: https://github.com/kataras/iris/issues/1453
// Defaults to an empty slice, usage:
//
// RemoteAddrPrivateSubnets {
// {Start: "10.0.0.0", End: "10.255.255.255"},
// {Start: "100.64.0.0", End: "100.127.255.255"},
// }
//
// Look `context.RemoteAddr()` for more.
GetRemoteAddrPrivateSubnets() []netutil.IPRange