Skip to content

Commit

Permalink
Fix routes not being returned from getRoutes
Browse files Browse the repository at this point in the history
  • Loading branch information
NHAS committed Oct 19, 2024
1 parent 381d9e5 commit ae39418
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/router/firewall.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (f *Firewall) GetRoutes(username string) ([]string, error) {
return true
})

return nil, nil
return result, nil
}

func (f *Firewall) SetInactivityTimeout(inactivityTimeoutMinutes int) error {
Expand Down Expand Up @@ -170,6 +170,8 @@ func (f *Firewall) Evaluate(src, dst netip.AddrPort, proto uint16) bool {

f.RUnlock()

log.Println("policies for", targetAddr.String(), *policy)

action := false
for _, decision := range *policy {

Expand Down

0 comments on commit ae39418

Please sign in to comment.