(network string, listenAddr, globalAddr string)
| 85 | } |
| 86 | |
| 87 | func 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 | |
| 95 | func replaceUnspecifiedIP(network string, address string, replace bool) (string, error) { |
| 96 | switch network { |