diff --git a/internal/router/bpf.go b/internal/router/bpf.go index f28e6dab..44b3240b 100644 --- a/internal/router/bpf.go +++ b/internal/router/bpf.go @@ -502,6 +502,10 @@ type fwDevice struct { } func GetRoutes(username string) ([]string, error) { + + lock.RLock() + defer lock.RUnlock() + userid := sha1.Sum([]byte(username)) result := map[string]bool{}