Skip to content
Snippets Groups Projects
Commit 1df5cac3 authored by Oliver Herms's avatar Oliver Herms
Browse files

Cleanup

parent 4c2072c7
Branches
Tags
No related merge requests found
...@@ -230,11 +230,11 @@ func (ip IP) ToNetIP() net.IP { ...@@ -230,11 +230,11 @@ func (ip IP) ToNetIP() net.IP {
// BitAtPosition returns the bit at position pos // BitAtPosition returns the bit at position pos
func (ip IP) BitAtPosition(pos uint8) bool { func (ip IP) BitAtPosition(pos uint8) bool {
if !ip.isLegacy { if ip.isLegacy {
return ip.bitAtPositionIPv6(pos) return ip.bitAtPositionIPv4(pos)
} }
return ip.bitAtPositionIPv4(pos) return ip.bitAtPositionIPv6(pos)
} }
func (ip IP) bitAtPositionIPv4(pos uint8) bool { func (ip IP) bitAtPositionIPv4(pos uint8) bool {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment