/**
* @param string $server
- * @param array $options
*/
- public function __construct( $server, $options = [] ) {
+ public function __construct( $server ) {
$parts = explode( ':', $server, 2 );
$this->host = $parts[0];
$this->port = $parts[1] ?? 80;
if ( IP::isIPv4( $this->host ) ) {
$this->ip = $this->host;
} elseif ( IP::isIPv6( $this->host ) ) {
- throw new MWException( '$wgSquidServers does not support IPv6' );
+ throw new MWException( '$wgCdnServers does not support IPv6' );
} else {
Wikimedia\suppressWarnings();
$this->ip = gethostbyname( $this->host );