From 89e67181903a670d86defa12c3b62cc509e2ac09 Mon Sep 17 00:00:00 2001 From: Yugyeong Park Date: Sun, 20 Oct 2024 00:17:35 +0900 Subject: [PATCH] Replace protocol value with unix.RTPROT_STATIC --- api/loxinlp/nlp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/loxinlp/nlp.go b/api/loxinlp/nlp.go index 8c4a5877d..003916b3d 100644 --- a/api/loxinlp/nlp.go +++ b/api/loxinlp/nlp.go @@ -1245,7 +1245,7 @@ func AddRouteNoHook(DestinationIPNet, gateway, proto string) int { route.Gw = Gw if proto == "static" { - route.Protocol = 4 // 4 means Proto Static. + route.Protocol = unix.RTPROT_STATIC } err = nlp.RouteAdd(&route) if err != nil {