---
title: matchDomains
framework: networkextension
role: symbol
role_heading: Instance Property
path: networkextension/neproxysettings/matchdomains
---

# matchDomains

An array of domain strings.

## Declaration

```swift
var matchDomains: [String]? { get set }
```

## Discussion

Discussion If the destination host name of a HTTP connection shares a suffix with one of these strings then the proxy settings will be used for the HTTP connection. Otherwise the proxy settings will not be used. This property should be used in conjunction with a split tunnel VPN, where only certain networks are tunneled by the VPN. The domains of those split tunneling networks should be specified in this property.

## See Also

### Accessing General Proxy Properties

- [excludeSimpleHostnames](networkextension/neproxysettings/excludesimplehostnames.md)
- [exceptionList](networkextension/neproxysettings/exceptionlist.md)
