MCPcopy Index your code
hub / github.com/windtf/wireproxy / parseTCPAddr

Function parseTCPAddr

config.go:120–126  ·  view source on GitHub ↗
(section *ini.Section, keyName string)

Source from the content-addressed store, hash-verified

118}
119
120func parseTCPAddr(section *ini.Section, keyName string) (*net.TCPAddr, error) {
121 addrStr, err := parseString(section, keyName)
122 if err != nil {
123 return nil, err
124 }
125 return net.ResolveTCPAddr("tcp", addrStr)
126}
127
128func parseBase64KeyToHex(section *ini.Section, keyName string) (string, error) {
129 key, err := parseString(section, keyName)

Callers 1

Calls 1

parseStringFunction · 0.85

Tested by

no test coverage detected