mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
p2p/netutil: update test for 0.0.0.0/8
This commit is contained in:
parent
0d8e61fa83
commit
b63b67dca5
1 changed files with 2 additions and 2 deletions
|
|
@ -80,8 +80,6 @@ func TestNilNetListContains(t *testing.T) {
|
||||||
func TestIsLAN(t *testing.T) {
|
func TestIsLAN(t *testing.T) {
|
||||||
checkContains(t, IsLAN,
|
checkContains(t, IsLAN,
|
||||||
[]string{ // included
|
[]string{ // included
|
||||||
"0.0.0.0",
|
|
||||||
"0.2.0.8",
|
|
||||||
"127.0.0.1",
|
"127.0.0.1",
|
||||||
"10.0.1.1",
|
"10.0.1.1",
|
||||||
"10.22.0.3",
|
"10.22.0.3",
|
||||||
|
|
@ -103,6 +101,8 @@ func TestIsLAN(t *testing.T) {
|
||||||
func TestIsSpecialNetwork(t *testing.T) {
|
func TestIsSpecialNetwork(t *testing.T) {
|
||||||
checkContains(t, IsSpecialNetwork,
|
checkContains(t, IsSpecialNetwork,
|
||||||
[]string{ // included
|
[]string{ // included
|
||||||
|
"0.0.0.0",
|
||||||
|
"0.2.0.8",
|
||||||
"192.0.2.1",
|
"192.0.2.1",
|
||||||
"192.0.2.44",
|
"192.0.2.44",
|
||||||
"2001:db8:85a3:8d3:1319:8a2e:370:7348",
|
"2001:db8:85a3:8d3:1319:8a2e:370:7348",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue