Skip to content

Commit

Permalink
Merge pull request #9 from ddosify/dynamic_fields_type_change
Browse files Browse the repository at this point in the history
dynamic fields map[interface{}]interface{} to map[string]interface{} …
  • Loading branch information
kursataktas authored Oct 11, 2021
2 parents fa23a81 + 54f677c commit c228848
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func (e *engine) runWorker() {
return
}

res.Others = make(map[interface{}]interface{})
res.Others = make(map[string]interface{})
res.Others["hammerOthers"] = e.hammer.Others
res.Others["proxyCountry"] = e.proxyService.GetProxyCountry(p)
e.responseChan <- res
Expand Down
2 changes: 1 addition & 1 deletion core/proxy/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type Proxy struct {
Addr *url.URL

// Dynamic field for other proxy strategies.
Others map[interface{}]interface{}
Others map[string]interface{}
}

// ProvideService is the interface that abstracts different proxy implementations.
Expand Down
2 changes: 1 addition & 1 deletion core/types/hammer.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ type Hammer struct {
ReportDestination string

// Dynamic field for extra parameters.
Others map[interface{}]interface{}
Others map[string]interface{}
}

// Validate validates attack metadata and executes the validation methods of the services.
Expand Down
2 changes: 1 addition & 1 deletion core/types/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type Response struct {
ResponseItems []*ResponseItem

// Dynamic field for extra data needs in response object consumers.
Others map[interface{}]interface{}
Others map[string]interface{}
}

// ResponseItem is corresponding to ScenarioItem.
Expand Down

0 comments on commit c228848

Please sign in to comment.