HTTP load generator, ApacheBench (ab) replacement
Go
Remove un-needed variable
Pascal Hakim95209ec9750c
diff --git a/commands/boom.go b/commands/boom.goindex 86b2e46..bd63701 100644--- a/commands/boom.go+++ b/commands/boom.go@@ -47,8 +47,6 @@ type Boom struct {bar *pb.ProgressBarrpt *reportresults chan *result-- ServerName string}func newPb(size int) (bar *pb.ProgressBar) {diff --git a/commands/run.go b/commands/run.goindex c91eb28..47fec6e 100644--- a/commands/run.go+++ b/commands/run.go@@ -32,7 +32,7 @@ func (b *Boom) Run() {func (b *Boom) worker(ch chan bool) {tr := &http.Transport{- TLSClientConfig: &tls.Config{InsecureSkipVerify: b.AllowInsecure, ServerName: b.ServerName},+ TLSClientConfig: &tls.Config{InsecureSkipVerify: b.AllowInsecure, ServerName: b.Req.Host},}client := &http.Client{Transport: tr}for _ = range ch {diff --git a/main.go b/main.goindex b1a99a2..1b06cc2 100644--- a/main.go+++ b/main.go@@ -146,9 +146,7 @@ func main() {Timeout: t,Req: req,AllowInsecure: *flagInsecure,- Output: *flagOutput,- ServerName: servername,- }).Run()+ Output: *flagOutput}).Run()}func usageAndExit(message string) {