chore: import improved bogons handling code (#723)
This diff imports improved bogons handling code from websteps
winter 2022 edition's repository.
See https://github.com/ooni/probe/issues/2095
See a65f3e8579/internal/netxlite/bogon.go
This commit is contained in:
parent
1776ea1288
commit
0efd4ff130
5 changed files with 148 additions and 24 deletions
|
|
@ -93,7 +93,7 @@ func TestQUICDialerQUICGo(t *testing.T) {
|
|||
ctx := context.Background()
|
||||
qconn, err := systemdialer.DialContext(
|
||||
ctx, "udp", "a.b.c.d:0", tlsConfig, &quic.Config{})
|
||||
if !errors.Is(err, errInvalidIP) {
|
||||
if !errors.Is(err, ErrInvalidIP) {
|
||||
t.Fatal("not the error we expected", err)
|
||||
}
|
||||
if qconn != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue