Ice3man543 2021-01-12 02:27:32 +05:30
parent acb4d270ca
commit a15e0b7523
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
package protocolinit
import (
"github.com/projectdiscovery/nuclei/v2/pkg/protocols/dns/dnsclientpool"
"github.com/projectdiscovery/nuclei/v2/pkg/protocols/http/httpclientpool"
"github.com/projectdiscovery/nuclei/v2/pkg/protocols/network/networkclientpool"
"github.com/projectdiscovery/nuclei/v2/pkg/types"
)
// Init initializes the client pools for the protocols
func Init(options *types.Options) error {
if err := dnsclientpool.Init(options); err != nil {
return err
}
if err := httpclientpool.Init(options); err != nil {
return err
}
if err := networkclientpool.Init(options); err != nil {
return err
}
return nil
}