MCPcopy
hub / github.com/bettercap/bettercap / IPParam

Method IPParam

session/module.go:163–169  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

161}
162
163func (m SessionModule) IPParam(name string) (error, net.IP) {
164 if err, v := m.StringParam(name); err != nil {
165 return err, nil
166 } else {
167 return nil, net.ParseIP(v)
168 }
169}
170
171func (m SessionModule) IntParam(name string) (error, int) {
172 if p, found := m.params[name]; found {

Callers 1

ConfigureMethod · 0.80

Calls 1

StringParamMethod · 0.95

Tested by

no test coverage detected