From ae3941852d1480c7f65fc9101087355e6b1be8d2 Mon Sep 17 00:00:00 2001 From: NHAS Date: Sat, 19 Oct 2024 18:04:49 +1300 Subject: [PATCH] Fix routes not being returned from getRoutes --- internal/router/firewall.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/router/firewall.go b/internal/router/firewall.go index 42b0098f..9edeadba 100644 --- a/internal/router/firewall.go +++ b/internal/router/firewall.go @@ -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 { @@ -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 {