List of steps to reproduce (step by step, including full links if applicable):
- Set $wgCdnServers[] to an IP address or hostname with no port specified
- Trigger a CdnCacheUpdate
What happens?:
cURL attempts to connect to the CDN server on port 1080.
What should have happened instead?:
cURL attempts to connect to the CDN server on port 80.
Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:
This is because the SquidPurgeClient that was in use defaulted to port 80. With the change to using MultiHttpClient for T250417, we now use cURL, and pass the $wgCdnServer as the proxy parameter. cURL defaults to port 1080 if no port is specified.