aboutsummaryrefslogtreecommitdiff
path: root/cmd/vhost
diff options
context:
space:
mode:
authorsotech117 <michael_foiani@brown.edu>2023-10-23 22:31:26 +0000
committersotech117 <michael_foiani@brown.edu>2023-10-23 22:31:26 +0000
commit1f926271bc80bcd6ff5ed52bb76a9ade347367b8 (patch)
tree30729c78765f6e1f9edba5fc6c1ef9cb94f25a6d /cmd/vhost
parent93416359403895d1dd1584c316d9e3dbfcc7a673 (diff)
refactor and comment code. add more descriptive error message.
Diffstat (limited to 'cmd/vhost')
-rw-r--r--cmd/vhost/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/vhost/main.go b/cmd/vhost/main.go
index 3c35792..e83d1bf 100644
--- a/cmd/vhost/main.go
+++ b/cmd/vhost/main.go
@@ -61,7 +61,7 @@ func main() {
messageToSendBytes := []byte(messageToSend)
address, _ := netip.ParseAddr(ipAddr)
- hop, err := ipstack.LongestPrefix(address)
+ hop, err := ipstack.Route(address)
if err != nil {
fmt.Println(err)
continue