|
|
@ -34,7 +34,6 @@ func main() {
|
|
|
|
netInterface, err := netlink.LinkByName(iface)
|
|
|
|
netInterface, err := netlink.LinkByName(iface)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
logger.Error.Fatal(err)
|
|
|
|
logger.Error.Fatal(err)
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Get the IPv4 address of the interface
|
|
|
|
// Get the IPv4 address of the interface
|
|
|
|