Merge "LocalNet: add DNS over TLS exception" into main

This commit is contained in:
Maciej Żenczykowski 2025-03-19 22:27:17 -07:00 • committed by Gerrit Code Review
commit a3926c8b4a

View file

@ -10063,6 +10063,8 @@ public class ConnectivityService extends IConnectivityManager.Stub {
IPPROTO_UDP, 53, true);
mBpfNetMaps.addLocalNetAccess(getIpv4MappedAddressBitLen(), iface, dnsServer,
IPPROTO_TCP, 53, true);
mBpfNetMaps.addLocalNetAccess(getIpv4MappedAddressBitLen(), iface, dnsServer,
IPPROTO_TCP, 853, true); // DNS over TLS
}
}
}
@ -10085,6 +10087,8 @@ public class ConnectivityService extends IConnectivityManager.Stub {
IPPROTO_UDP, 53);
mBpfNetMaps.removeLocalNetAccess(getIpv4MappedAddressBitLen(), iface, dnsServer,
IPPROTO_TCP, 53);
mBpfNetMaps.removeLocalNetAccess(getIpv4MappedAddressBitLen(), iface, dnsServer,
IPPROTO_TCP, 853); // DNS over TLS
}
}
}