Skip to content

Commit

Permalink
Merge pull request bettercap#1005 from elleuc4/route_headings_fix
Browse files Browse the repository at this point in the history
Skip line processing if routing headings weren't found yet.
  • Loading branch information
evilsocket committed Jan 7, 2024
2 parents ee35550 + 44e2420 commit 924ff57
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions routing/update_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ func update() ([]Route, error) {
continue
}

// skip line if no route headings found yet
if routeHeadings == nil {
continue
}

route := Route{}
for i, s := range parts {
switch routeHeadings[i] {
Expand Down

0 comments on commit 924ff57

Please sign in to comment.