validateProxyConfig validates proxy configuration and displays status at startup
()
| 207 | |
| 208 | // validateProxyConfig validates proxy configuration and displays status at startup |
| 209 | func validateProxyConfig() { |
| 210 | if conf.Conf.ProxyAddress != "" { |
| 211 | if _, err := url.Parse(conf.Conf.ProxyAddress); err == nil { |
| 212 | log.Infof("Proxy enabled: %s", conf.Conf.ProxyAddress) |
| 213 | } else { |
| 214 | log.Errorf("Invalid proxy address format: %s, error: %v", conf.Conf.ProxyAddress, err) |
| 215 | } |
| 216 | } |
| 217 | } |