fix IPv6 routing table parsing

This commit is contained in:
☸️ 2021-09-21 00:40:55 +10:00 committed by GitHub
commit ac96bc8d2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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