Skip to content

Commit

Permalink
ignore the error on the RouteMessage on Darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Jan 15, 2022
1 parent 64e978a commit fde2c5b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions netroute_bsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

// This is a BSD import for the routing structure initially found in
// https://github.com/google/gopacket/blob/master/routing/routing.go
//RIB parsing follows the BSD route format described in
// RIB parsing follows the BSD route format described in
// https://github.com/freebsd/freebsd/blob/master/sys/net/route.h
package netroute

Expand Down Expand Up @@ -80,9 +80,6 @@ func New() (routing.Router, error) {
m.Flags&(RTF_REJECT|RTF_BLACKHOLE) != 0 {
continue
}
if m.Err != nil {
continue
}

dst, err := toIPAddr(m.Addrs[0])
if err == nil {
Expand Down

0 comments on commit fde2c5b

Please sign in to comment.