Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
fix(router): add dummy connector url to proxy bypass (#1186)
ThisIsManibc5497f03ab7
diff --git a/crates/router/src/services/api.rs b/crates/router/src/services/api.rsindex c2340ab106..0b25721f5e 100644--- a/crates/router/src/services/api.rs+++ b/crates/router/src/services/api.rs@@ -303,6 +303,10 @@ pub async fn send_request() -> CustomResult<reqwest::Response, errors::ApiClientError> {logger::debug!(method=?request.method, headers=?request.headers, payload=?request.payload, ?request);let url = &request.url;+ #[cfg(feature = "dummy_connector")]+ let should_bypass_proxy = url.starts_with(&state.conf.connectors.dummyconnector.base_url)+ || client::proxy_bypass_urls(&state.conf.locker).contains(url);+ #[cfg(not(feature = "dummy_connector"))]let should_bypass_proxy = client::proxy_bypass_urls(&state.conf.locker).contains(url);let client = client::create_client(&state.conf.proxy,