mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-16 07:16:38 +00:00
* Ensure route settlement on iOS before handling DNS responses to prevent bypassing the tunnel. * add more logs * rollback debug changes * rollback changes * [client] Improve logging and add comments for iOS route settlement logic - Switch iOS route settlement log level from Debug to Trace for finer control. - Add clarifying comments for `waitForRouteSettlement` on non-iOS platforms. --------- Co-authored-by: mlsmaycon <mlsmaycon@gmail.com>
13 lines
405 B
Go
13 lines
405 B
Go
//go:build !ios
|
|
|
|
package dnsinterceptor
|
|
|
|
import log "github.com/sirupsen/logrus"
|
|
|
|
func waitForRouteSettlement(_ *log.Entry) {
|
|
// No-op on non-iOS platforms: route changes are applied synchronously by
|
|
// the kernel, so no settlement delay is needed before the DNS response
|
|
// reaches the application. The delay is only required on iOS where
|
|
// setTunnelNetworkSettings applies routes asynchronously.
|
|
}
|