mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 05:23:19 -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 {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
output = strings.ReplaceAll(output, "Next Hop", "NextHop")
|
||||||
|
|
||||||
for _, line := range strings.Split(output, "\n") {
|
for _, line := range strings.Split(output, "\n") {
|
||||||
if line = str.Trim(line); len(line) != 0 {
|
if line = str.Trim(line); len(line) != 0 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue