Files
firezone/swift
Jamil 14351ec405 Temporarily set matchDomains when tunnel is reasserting (#3012)
I realized we had the right approach in the comments on PR #2967, but
had a bug in the implementation.

This implements that approach.

Tested to work under the following scenarios:

- macOS with Ethernet and WiFi connected
  - Disable Ethernet adapter ->  
  - Disable WiFi (no internet) -> Enable WiFi ->  
  - Enable Ethernet adapter -> Disable WiFi ->  
  - Disable both Ethernet and WiFi -> Enable WiFi ->  
  - Switching WiFi networks ->  
- iOS with WiFi and cellular connected
  - Disable WiFi ->  
  - Disable cellular ->  
  - Disable both WiFi and cellular -> Enable WiFi ->  
  - Switching WiFi networks ->  

Under all of the tests above, Split DNS with connlib worked reliably
after the `onTunnelReady` callback completed.
2023-12-23 17:17:27 +00:00
..