1
0
mirror of https://github.com/bettercap/bettercap.git synced 2025-03-12 04:36:03 -07:00

Merge pull request from elleuc4/route_headings_fix

Skip line processing if routing headings weren't found yet.
This commit is contained in:
Simone Margaritelli 2024-01-07 12:47:06 +01:00 committed by GitHub
commit 924ff5753d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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] {