Skip to content

Commit

Permalink
Added insecure flag, updated dependencies, added tests
Browse files Browse the repository at this point in the history
Closes #7
  • Loading branch information
ameshkov committed Jun 2, 2023
1 parent 17d7a15 commit 4c3ed22
Show file tree
Hide file tree
Showing 6 changed files with 272 additions and 130 deletions.
4 changes: 1 addition & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,17 @@ linters-settings:

linters:
enable:
- deadcode
- errcheck
- govet
- ineffassign
- staticcheck
- structcheck
- unused
- varcheck
- bodyclose
- depguard
- dupl
- gocyclo
- goimports
- revive
- gosec
- misspell
- stylecheck
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ A very simple DNS benchmarking tool based on [dnsproxy](https://github.com/Adgua
```
* From source:
```
go get github.com/ameshkov/godnsbench
go install github.com/ameshkov/godnsbench
```
* You can get a binary from the [releases page](https://github.com/ameshkov/godnsbench/releases).
Expand All @@ -33,6 +33,7 @@ Application Options:
-t, --timeout= Query timeout in seconds (default: 10)
-r, --rate-limit= Rate limit (per second) (default: 0)
-c, --count= The overall number of queries we should send (default: 10000)
--insecure Do not validate the server certificate
-v, --verbose Verbose output (optional)
-o, --output= Path to the log file. If not set, write to stdout.
Expand Down
41 changes: 23 additions & 18 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,39 @@ module github.com/ameshkov/godnsbench
go 1.18

require (
github.com/AdguardTeam/dnsproxy v0.45.0
github.com/AdguardTeam/golibs v0.10.9
github.com/AdguardTeam/dnsproxy v0.49.2
github.com/AdguardTeam/golibs v0.13.0
github.com/jessevdk/go-flags v1.5.0
github.com/miekg/dns v1.1.50
github.com/stretchr/testify v1.8.2
go.uber.org/ratelimit v0.2.0
)

require (
github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da // indirect
github.com/aead/poly1305 v0.0.0-20180717145839-3fee0db0b635 // indirect
github.com/ameshkov/dnscrypt/v2 v2.2.5 // indirect
github.com/ameshkov/dnscrypt/v2 v2.2.6 // indirect
github.com/ameshkov/dnsstamps v1.0.3 // indirect
github.com/andres-erbsen/clock v0.0.0-20160526145045-9e14626cd129 // indirect
github.com/fsnotify/fsnotify v1.5.4 // indirect
github.com/beefsack/go-rate v0.0.0-20220214233405-116f4ca011a0 // indirect
github.com/bluele/gcache v0.0.2 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0 // indirect
github.com/golang/mock v1.6.0 // indirect
github.com/lucas-clemente/quic-go v0.29.0 // indirect
github.com/marten-seemann/qpack v0.2.1 // indirect
github.com/marten-seemann/qtls-go1-18 v0.1.2 // indirect
github.com/marten-seemann/qtls-go1-19 v0.1.0 // indirect
github.com/nxadm/tail v1.4.8 // indirect
github.com/onsi/ginkgo v1.16.5 // indirect
golang.org/x/crypto v0.0.0-20220829220503-c86fa9a7ed90 // indirect
golang.org/x/exp v0.0.0-20220827204233-334a2380cb91 // indirect
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect
golang.org/x/net v0.0.0-20220826154423-83b083e8dc8b // indirect
golang.org/x/sys v0.0.0-20220829200755-d48e67d00261 // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/tools v0.1.12 // indirect
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
github.com/google/pprof v0.0.0-20230111200839-76d1ae5aea2b // indirect
github.com/onsi/ginkgo/v2 v2.7.0 // indirect
github.com/patrickmn/go-cache v2.1.0+incompatible // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/quic-go/qpack v0.4.0 // indirect
github.com/quic-go/qtls-go1-19 v0.2.1 // indirect
github.com/quic-go/qtls-go1-20 v0.1.1 // indirect
github.com/quic-go/quic-go v0.33.0 // indirect
golang.org/x/crypto v0.5.0 // indirect
golang.org/x/exp v0.0.0-20230306221820-f0f767cdffd6 // indirect
golang.org/x/mod v0.8.0 // indirect
golang.org/x/net v0.8.0 // indirect
golang.org/x/sys v0.6.0 // indirect
golang.org/x/text v0.8.0 // indirect
golang.org/x/tools v0.6.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit 4c3ed22

Please sign in to comment.