mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
fix IPv6 routing table parsing
This commit is contained in:
parent
5389228034
commit
ac96bc8d2f
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue