From 7fed1f75a32c161ba0d296dbb7b6dc14e831336e Mon Sep 17 00:00:00 2001 From: Shulhan Date: Sun, 21 Mar 2021 23:24:46 +0700 Subject: all: implement interface and API to cancel running attack On the top of the page, it will display currently running attack with target name and HTTP target name. User can cancel the attack by clicking "Cancel" button on the right. --- example/example.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'example') diff --git a/example/example.go b/example/example.go index 190b39a..9a91ebb 100644 --- a/example/example.go +++ b/example/example.go @@ -95,8 +95,8 @@ func (ex *Example) registerTargets() (err error) { Name: "Example", Opts: &trunks.AttackOptions{ BaseUrl: fmt.Sprintf("http://%s", ex.trunks.Env.ListenAddress), - Duration: 5 * time.Second, - RatePerSecond: 10, + Duration: 300 * time.Second, + RatePerSecond: 1, }, Vars: map[string]string{ "A": "1", -- cgit v1.3-5-g45d5