diff options
Diffstat (limited to 'config/default_linux.go')
-rw-r--r-- | config/default_linux.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/config/default_linux.go b/config/default_linux.go index 6bee2317..f83b76fe 100644 --- a/config/default_linux.go +++ b/config/default_linux.go @@ -18,8 +18,9 @@ package config import ( "fmt" - "github.com/vishvananda/netlink" "net" + + "github.com/vishvananda/netlink" ) func GetIPv6LinkLocalNeighborAddress(ifname string) (string, error) { @@ -40,7 +41,7 @@ func GetIPv6LinkLocalNeighborAddress(ifname string) (string, error) { } if neigh.State&netlink.NUD_FAILED == 0 && neigh.IP.IsLinkLocalUnicast() && !local { addr = neigh.IP - cnt += 1 + cnt++ } } |