Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ archives:
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
release:
github:
owner: kazeburo
owner: monitoring-forge
name: check_http2
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ all: check_http2
.PHONY: check_http2

check_http2: main.go
go build $(LDFLAGS) -o check_http2 main.go
go build $(LDFLAGS) -o check_http2 writer.go checker.go main.go
Comment thread
kazeburo marked this conversation as resolved.
Outdated

linux: main.go
GOOS=linux GOARCH=amd64 go build $(LDFLAGS) -o check_http2 main.go
GOOS=linux GOARCH=amd64 go build $(LDFLAGS) -o check_http2 writer.go checker.go main.go
Comment thread
kazeburo marked this conversation as resolved.
Outdated

check:
go test -v ./...
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Application Options:
--tls-max=[1.0|1.1|1.2|1.3] maximum supported TLS version
-4 use tcp4 only
-6 use tcp6 only
--verify-ssl verify SSL certificate
-v, --version Show version

Help Options:
Expand Down
3 changes: 2 additions & 1 deletion checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ type Opt struct {
TLSMaxVersion string `long:"tls-max" description:"maximum supported TLS version" choice:"1.0" choice:"1.1" choice:"1.2" choice:"1.3"`
TCP4 bool `short:"4" description:"use tcp4 only"`
TCP6 bool `short:"6" description:"use tcp6 only"`
VerifySSL bool `long:"verify-ssl" description:"verify SSL certificate"`
Version bool `short:"v" long:"version" description:"Show version"`
bufferSize uint64
expectByte []byte
Expand Down Expand Up @@ -90,7 +91,7 @@ func (opt *Opt) MakeTransport() http.RoundTripper {
}

tlsConfig := &tls.Config{
InsecureSkipVerify: true,
InsecureSkipVerify: !opt.VerifySSL,
}
Comment thread
kazeburo marked this conversation as resolved.
if opt.SNI {
host, _, err := net.SplitHostPort(opt.Hostname)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/kazeburo/check_http2
module github.com/monitoring-forge/check_http2

go 1.25.0

Expand Down
Loading