Skip to content

Commit

Permalink
fix IPv6 routing table parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
buffermet authored Sep 20, 2021
1 parent 5389228 commit ac96bc8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions routing/update_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ func update() ([]Route, error) {
if err != nil {
return nil, err
}
output = strings.ReplaceAll(output, "Next Hop", "NextHop")

for _, line := range strings.Split(output, "\n") {
if line = str.Trim(line); len(line) != 0 {
Expand Down

0 comments on commit ac96bc8

Please sign in to comment.