MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / validateProxyConfig

Function validateProxyConfig

internal/bootstrap/config.go:209–217  ·  view source on GitHub ↗

validateProxyConfig validates proxy configuration and displays status at startup

()

Source from the content-addressed store, hash-verified

207
208// validateProxyConfig validates proxy configuration and displays status at startup
209func 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}

Callers 1

InitConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected