aboutsummaryrefslogtreecommitdiff
path: root/cmd/vhost/main.go
diff options
context:
space:
mode:
authorDavid Doan <daviddoan@Davids-MacBook-Pro-70.local>2023-10-19 15:59:49 -0400
committerDavid Doan <daviddoan@Davids-MacBook-Pro-70.local>2023-10-19 15:59:49 -0400
commit1e66c42543ddbd610968a73b30f8646f289da07a (patch)
tree7cc595addd16a9e8c007752bfc017a5aac68c0c5 /cmd/vhost/main.go
parent1e1f56b0dfe1b95d181ff40eeac0cc4260c937fb (diff)
RIP
Diffstat (limited to 'cmd/vhost/main.go')
-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