Skip to content
This repository has been archived by the owner on Dec 22, 2022. It is now read-only.

Commit

Permalink
Add IPv6 Non-Public Network (prebid#1417)
Browse files Browse the repository at this point in the history
  • Loading branch information
SyntaxNode committed Jul 29, 2020
1 parent 7b349e1 commit 38f5225
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -896,13 +896,14 @@ func SetupViper(v *viper.Viper, filename string) {
/* Loopback: 127.0.0.0/8
/*
/* IPv6
/* Loopback: ::1/128
/* Unique Local: fc00::/7
/* Link Local: fe80::/10
/* Multicast: ff00::/8
/* Loopback: ::1/128
/* Documentation: 2001:db8::/32
/* Unique Local: fc00::/7
/* Link Local: fe80::/10
/* Multicast: ff00::/8
*/
v.SetDefault("request_validation.ipv4_private_networks", []string{"10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16", "169.254.0.0/16", "127.0.0.0/8"})
v.SetDefault("request_validation.ipv6_private_networks", []string{"::1/128", "fc00::/7", "fe80::/10", "ff00::/8"})
v.SetDefault("request_validation.ipv6_private_networks", []string{"::1/128", "fc00::/7", "fe80::/10", "ff00::/8", "2001:db8::/32"})

// Set environment variable support:
v.SetEnvKeyReplacer(strings.NewReplacer(".", "_"))
Expand Down

0 comments on commit 38f5225

Please sign in to comment.