mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-18 00:25:26 +00:00
23 lines
637 B
Go
23 lines
637 B
Go
|
|
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
|
||
|
|
}
|