---
title: "nw_proxy_config_set_failover_allowed(_:_:)"
framework: network
role: symbol
role_heading: Function
path: "network/nw_proxy_config_set_failover_allowed(_:_:)"
---

# nw_proxy_config_set_failover_allowed(_:_:)

Configures whether or not a proxy configuration allows failover to non-proxied connections. Failover isn’t allowed by default.

## Declaration

```swift
func nw_proxy_config_set_failover_allowed(_ proxy_config: nw_proxy_config_t, _ failover_allowed: Bool)
```

## Parameters

- `proxy_config`: The proxy configuration to modify.
- `failover_allowed`: A Boolean that indicates whether or not a proxy configuration allows failover to non-proxied connections.

## See Also

### Customizing Proxy Behavior

- [nw_proxy_config_set_username_and_password(_:_:_:)](network/nw_proxy_config_set_username_and_password(_:_:_:).md)
