Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c895b818 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix NetworkMonitor won't do private dns resolution"

parents 31b33b6f 8175ac99
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -6389,6 +6389,11 @@ public class ConnectivityService extends IConnectivityManager.Stub
                Slog.wtf(TAG, networkAgent.name() + " connected with null LinkProperties");
            }

            // NetworkCapabilities need to be set before sending the private DNS config to
            // NetworkMonitor, otherwise NetworkMonitor cannot determine if validation is required.
            synchronized (networkAgent) {
                networkAgent.setNetworkCapabilities(networkAgent.networkCapabilities);
            }
            handlePerNetworkPrivateDnsConfig(networkAgent, mDnsManager.getPrivateDnsConfig());
            updateLinkProperties(networkAgent, new LinkProperties(networkAgent.linkProperties),
                    null);