MCPcopy Create free account
hub / github.com/chainreactors/spray / LoadPorts

Function LoadPorts

pkg/load.go:18–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16)
17
18func LoadPorts() error {
19 var err error
20 var ports []*utils.PortConfig
21 err = yaml.Unmarshal(LoadConfig("port"), &ports)
22 if err != nil {
23 return err
24 }
25 utils.PrePort = utils.NewPortPreset(ports)
26 return nil
27}
28
29func LoadFingers() error {
30 var err error

Callers 1

LoadResourcesFunction · 0.85

Calls 1

LoadConfigFunction · 0.70

Tested by

no test coverage detected