Manual:$wgProxyWhitelist/de-formal

Details
Sets a proxy whitelist that whitelists an IP address or a list of addresses that are assumed to be non-proxy despite what the other methods might say.