From 1e66c42543ddbd610968a73b30f8646f289da07a Mon Sep 17 00:00:00 2001 From: David Doan Date: Thu, 19 Oct 2023 15:59:49 -0400 Subject: RIP --- cmd/vhost/main.go | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'cmd/vhost') diff --git a/cmd/vhost/main.go b/cmd/vhost/main.go index 27e073f..2ecbfa7 100644 --- a/cmd/vhost/main.go +++ b/cmd/vhost/main.go @@ -65,11 +65,20 @@ func main() { fmt.Println(err) continue } - ipstack.SendIP(ipstack.GetMyVIP(), iface, 0, messageToSendBytes, ipAddr) + err = ipstack.SendIP(ipstack.GetMyVIP(), iface, 0, messageToSendBytes, ipAddr) + if err != nil { + fmt.Println(err) + continue + } + continue + } + err = ipstack.SendIP(ipstack.GetMyVIP(), iface, 0, messageToSendBytes, ipAddr) + if err != nil { + fmt.Println(err) + continue } - ipstack.SendIP(ipstack.GetMyVIP(), iface, 0, messageToSendBytes, ipAddr) } - } + } if len(line) > 2 { if line[:2] == "up" { // get interface name -- cgit v1.2.3-70-g09d2