mirror of
https://github.com/SleepingBag945/dddd.git
synced 2025-06-22 02:40:29 +00:00
21 lines
465 B
Go
Executable File
21 lines
465 B
Go
Executable File
package customlist
|
|
|
|
import "github.com/projectdiscovery/httpx/common/fileutil"
|
|
|
|
const maxRecursion = 10
|
|
|
|
// CustomList for fastdialer
|
|
type CustomList []string
|
|
|
|
// String returns just a label
|
|
func (c *CustomList) String() string {
|
|
return "Custom Global List"
|
|
}
|
|
|
|
// Set a new global header
|
|
func (c *CustomList) Set(value string) error {
|
|
values := fileutil.LoadCidrsFromSliceOrFileWithMaxRecursion(value, ",", maxRecursion)
|
|
*c = append(*c, values...)
|
|
return nil
|
|
}
|