Bug 1421393 - Skip some virtual interfaces (VMWare). r=valentin,necko-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D235476
This commit is contained in:
kernp25
2025-01-29 14:40:46 +00:00
parent d86cfe5d34
commit 529b7ca392

View File

@@ -491,7 +491,10 @@ nsNotifyAddrListener::CheckAdaptersAddresses(void) {
adapter = adapter->Next) {
if (adapter->OperStatus != IfOperStatusUp ||
!adapter->FirstUnicastAddress ||
adapter->IfType == IF_TYPE_SOFTWARE_LOOPBACK) {
adapter->IfType == IF_TYPE_SOFTWARE_LOOPBACK ||
nsDependentString(adapter->FriendlyName).Find(u"VMnet") !=
kNotFound ||
nsDependentString(adapter->Description).Find(u"VMnet") != kNotFound) {
continue;
}