HttpBindAddress returns the KeyBindHost:KeyHttpPort URL
()
| 272 | |
| 273 | // HttpBindAddress returns the KeyBindHost:KeyHttpPort URL |
| 274 | func HttpBindAddress() string { |
| 275 | h := r.GetString(KeyBindHost) |
| 276 | if HttpServerType() == HttpServerNative && h == "0.0.0.0" { |
| 277 | if addr, err := utilnet.ResolveBindAddress(net.ParseIP(h)); err == nil { |
| 278 | h = addr.String() |
| 279 | } |
| 280 | } |
| 281 | return net.JoinHostPort(h, r.GetString(KeyHttpPort)) |
| 282 | } |
| 283 | |
| 284 | // LogLevel returns the --log value |
| 285 | func LogLevel() string { |
nothing calls this directly
no test coverage detected
searching dependent graphs…