Skip to content

Commit d7751ae

Browse files
authored
chore: add tests for ipv6 and ipv4-mapped ipv6 (#352)
1 parent dd22c73 commit d7751ae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

http/http_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ func TestIsPrivateIP(t *testing.T) {
2222
{"10.0.0.1", true},
2323
{"192.168.0.1", true},
2424
{"172.16.0.0", true},
25-
{"169.254.169.254", true},
25+
{"fd00:ec2::254", true},
26+
{"::ffff:169.254.169.254", true},
27+
{"0:0:0:0:0:ffff:169.254.169.254", true},
2628
}
2729

2830
for _, tt := range tests {

0 commit comments

Comments
 (0)