Skip to content

Commit

Permalink
Fix: typo resulting in v6 networks got added to v4 table
Browse files Browse the repository at this point in the history
  • Loading branch information
securitym0nkey committed May 22, 2024
1 parent e2855d6 commit 1d18d09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Annotations can be loaded from a cvs file. Such cvs file has 2 columns: *NETWORK
192.0.2.0/24,(TEST-NET-1)
198.51.100.0/24,(TEST-NET-2)
203.0.113.0/24,(TEST-NET-3)
2001:DB8::0/32,v6 Example
ff00::/8,v6 Multicast
```

Lookups can be done via the line-protocol or http
Expand Down
2 changes: 1 addition & 1 deletion pkg/iplookup/lookuptables.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func (dt *DualLookupTable) AddNetwork(network net.IPNet, s string) {
if network.IP.To4() != nil {
dt.v4.AddNetwork(network, s)
} else {
dt.v4.AddNetwork(network, s)
dt.v6.AddNetwork(network, s)
}
}

Expand Down

0 comments on commit 1d18d09

Please sign in to comment.