Skip to content

Commit

Permalink
Add RFC6598 reserved prefix (Jigsaw-Code#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
DuckSoft authored Mar 11, 2021
1 parent 9b1c52e commit 77b265e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/private_net.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ func init() {
"192.168.0.0/16",
// RFC 4193: IPv6 ULAs
"fc00::/7",
// RFC 6598: reserved prefix for CGNAT
"100.64.0.0/10",
} {
_, subnet, _ := net.ParseCIDR(cidr)
privateNetworks = append(privateNetworks, subnet)
Expand Down

0 comments on commit 77b265e

Please sign in to comment.