Skip to content

Conversation

deer-wmde
Copy link
Contributor

It seems like some DNS IP blocklist added the private IP range that our minikube setup uses (10.244.0.1/16)

Unfortunately we can't set that range directly in $wgProxyWhitelist so I added some loops to build up the IP list ... hopefully we can find a nicer solution but this seems to work at least, so I record it here as a workaround.

Also this fixes $wwDomainSaysLocal as we do not use localhost domains anymore.

image


// Define some conditions to switch behaviour on
$wwDomainSaysLocal = preg_match("/(\w\.localhost)/", $_SERVER['SERVER_NAME']) === 1;
$wwDomainSaysLocal = preg_match("/(\w\.wbaas\.dev)/", $_SERVER['SERVER_NAME']) === 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this probably needs an "or" or i think this will break and docker usages of this flag

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated it, although I'm not sure if the docker stuff uses something.localhost domains (as this regex also didnt include just localhost before, but at least it shouldnt break anything additionally now)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants