From 38e71260f043b0b796abd0a4cf2ccd9a5b5a1062 Mon Sep 17 00:00:00 2001 From: Maximilian Wilhelm Date: Tue, 22 Aug 2023 22:04:50 +0200 Subject: [PATCH] Convert NHs to string explicitly Signed-off-by: Maximilian Wilhelm --- route/static.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/route/static.go b/route/static.go index 86114074..01606634 100644 --- a/route/static.go +++ b/route/static.go @@ -60,14 +60,14 @@ func (s *StaticPath) String() string { return "path not present." } - return fmt.Sprintf("Next hop: %s", s.NextHop) + return fmt.Sprintf("Next hop: %s", s.NextHop.String()) } // Print all known information about a route in human readable form func (s *StaticPath) Print() string { buf := &strings.Builder{} - fmt.Fprintf(buf, "\t\tNext hop: %s\n", s.NextHop) + fmt.Fprintf(buf, "\t\tNext hop: %s\n", s.NextHop.String()) return buf.String() }