Skip to content

Commit

Permalink
fix trie6 init
Browse files Browse the repository at this point in the history
  • Loading branch information
cybwan committed Nov 7, 2023
1 parent 7b0cca6 commit 179711e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions loxinet/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ import (
"fmt"
"net"

cmn "github.com/loxilb-io/loxilb/common"
tk "github.com/loxilb-io/loxilib"

cmn "github.com/loxilb-io/loxilb/common"
)

// error codes
Expand Down Expand Up @@ -110,7 +111,7 @@ func RtInit(zone *Zone) *RtH {
var nRt = new(RtH)
nRt.RtMap = make(map[RtKey]*Rt)
nRt.Trie4 = tk.TrieInit(false)
nRt.Trie6 = tk.TrieInit(false)
nRt.Trie6 = tk.TrieInit(true)
nRt.Zone = zone
nRt.Mark = tk.NewCounter(1, MaxSysRoutes)
return nRt
Expand Down

0 comments on commit 179711e

Please sign in to comment.