mirror of
https://github.com/bettercap/bettercap.git
synced 2025-03-12 04:36:03 -07:00
Merge pull request #1005 from elleuc4/route_headings_fix
Skip line processing if routing headings weren't found yet.
This commit is contained in:
commit
924ff5753d
@ -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…
x
Reference in New Issue
Block a user