mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-11 23:40:34 -05:00
macOS shows a "Local Network" privacy prompt when an app opens TCP/UDP connections to devices on the local network over Wi-Fi (per Apple TN3179). Chromium's built-in DNS client (enabled by default on macOS via the kAsyncDns feature flag) sends DNS queries directly over UDP sockets to the system-configured nameservers. On most Wi-Fi networks, the DNS server is in the same-subnet address and triggers the prompt on every launch. Unlike the system resolver path (getaddrinfo → mDNSResponder), the built-in client opens raw UDP sockets from the app process in default (kOff mode) to config.nameservers[] via DnsUDPAttempt::Start() in net/dns/dns_transaction.cc.