From 1f926271bc80bcd6ff5ed52bb76a9ade347367b8 Mon Sep 17 00:00:00 2001 From: sotech117 Date: Mon, 23 Oct 2023 22:31:26 +0000 Subject: refactor and comment code. add more descriptive error message. --- cmd/vhost/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/vhost/main.go') 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 -- cgit v1.2.3-70-g09d2