Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions config/http_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,10 @@ func (c *HTTPClientConfig) Validate() error {
return fmt.Errorf("at most one of oauth2 client_secret & client_secret_file must be configured")
}
}
// Change empty URL to nil to avoid connection errors
if c.ProxyURL.URL != nil && *c.ProxyURL.URL == (url.URL{}) {
c.ProxyURL.URL = nil
}
return nil
}

Expand Down