@Override protected TunnelRequest getTunnelConfig() { String userAgent = requestHeaders.getUserAgent(); if (userAgent == null) { userAgent = getDefaultUserAgent(); } URL url = policy.getURL(); return new TunnelRequest(url.getHost(), getEffectivePort(url), userAgent, requestHeaders.getProxyAuthorization()); }