Skip to content

Commit

Permalink
fix: config: findhop with nil.
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldin95 committed Aug 31, 2024
1 parent 562ef30 commit 91df2f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/config/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,9 @@ func (n *Network) DelOutput(value *Output) (*Output, bool) {
}

func (n *Network) FindFindHop(value *FindHop) *FindHop {
if n.FindHop == nil {
n.FindHop = make(map[string]*FindHop)
}
return n.FindHop[value.Name]
}

Expand Down

0 comments on commit 91df2f7

Please sign in to comment.