protected function configureProxyDomainExclusions()
    {
        $noProxy = $this->config()->get('egress_proxy_exclude_domains');
        if (empty($noProxy)) {
            return;
        }

        if (!is_array($noProxy)) {
            $noProxy = [$noProxy];
        }

        // Merge with exsiting if needed.
        if (Environment::getEnv('NO_PROXY')) {
            $noProxy = array_merge(explode(',', Environment::getEnv('NO_PROXY')), $noProxy);
        }

        /*
         * Set the environment varial for NO_PROXY the same way the
         * proxy variables are set above
         */
        putenv('NO_PROXY=' . implode(',', array_unique($noProxy)));
    }