mirror of https://github.com/daffainfo/nuclei.git
OfflineHTTPProtocol mapping (#2993)
* OfflineHTTPProtocol mapping, fixes #2988 * Reject not mapped protocols Co-authored-by: Víctor Zamanillo <victor.zamanillo@cifraeducacion.com>dev
parent
0e35133ad5
commit
b77787e9bd
|
@ -157,7 +157,11 @@ func (protocolTypes *ProtocolTypes) UnmarshalYAML(unmarshal func(interface{}) er
|
|||
func (protocolTypes ProtocolTypes) String() string {
|
||||
var stringTypes []string
|
||||
for _, t := range protocolTypes {
|
||||
stringTypes = append(stringTypes, t.String())
|
||||
protocolMapping := t.String()
|
||||
if protocolMapping != "" {
|
||||
stringTypes = append(stringTypes, protocolMapping)
|
||||
}
|
||||
|
||||
}
|
||||
return strings.Join(stringTypes, ", ")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue