MCPcopy
hub / github.com/CodisLabs/codis / ReplaceUnspecifiedIP

Function ReplaceUnspecifiedIP

pkg/utils/resolver.go:87–93  ·  view source on GitHub ↗
(network string, listenAddr, globalAddr string)

Source from the content-addressed store, hash-verified

85}
86
87func ReplaceUnspecifiedIP(network string, listenAddr, globalAddr string) (string, error) {
88 if globalAddr == "" {
89 return replaceUnspecifiedIP(network, listenAddr, true)
90 } else {
91 return replaceUnspecifiedIP(network, globalAddr, false)
92 }
93}
94
95func replaceUnspecifiedIP(network string, address string, replace bool) (string, error) {
96 switch network {

Callers 1

TestReplaceUnspecifiedIPFunction · 0.85

Calls 1

replaceUnspecifiedIPFunction · 0.85

Tested by 1

TestReplaceUnspecifiedIPFunction · 0.68