aboutsummaryrefslogtreecommitdiff
path: root/cmd/vhost
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/vhost')
-rw-r--r--cmd/vhost/main.go15
1 files changed, 12 insertions, 3 deletions
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