Skip to content

Commit

Permalink
Replace protocol value with unix.RTPROT_STATIC
Browse files Browse the repository at this point in the history
  • Loading branch information
yugyeong2 committed Oct 19, 2024
1 parent 843da86 commit 89e6718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/loxinlp/nlp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 89e6718

Please sign in to comment.