Skip to content

Commit

Permalink
fix broken ListSrc() and ListDNS()
Browse files Browse the repository at this point in the history
  • Loading branch information
boratanrikulu committed Jul 27, 2024
1 parent 32cb6d4 commit f2f7aad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.19
go-version: ^1.21

- name: Check out code into the Go module directory
uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions internal/ebpf/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func (e *EBPF) ListSrc() (map[string]int, error) {
entries := e.Objects.DropSrcAddrs.Iterate()
for {
var key uint32
var value uint8
var value int64
if next := entries.Next(&key, &value); !next {
break
}
Expand All @@ -36,7 +36,7 @@ func (e *EBPF) ListDNS() (map[string]int, error) {
entries := e.Objects.DropDns.Iterate()
for {
var key [bytesLength]byte
var value uint8
var value int64
if next := entries.Next(&key, &value); !next {
break
}
Expand Down

0 comments on commit f2f7aad

Please sign in to comment.