mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 21:43:18 -07:00
Skip line if no route headings found yet
This commit is contained in:
parent
24a5dfe48f
commit
44e24204e5
1 changed files with 5 additions and 0 deletions
|
@ -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] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue