Skip to content

Stubby does not work if there are virtual adapters [Windows] #6

@BalkanMadman

Description

@BalkanMadman

Okay, so I downloaded the latest Stubby manager version and when I try to turn it on it shows following error message

Status: Stubby service NOT in use by system (DNS settings NOT using localhost).

So, I opened windows control panel, went to adapter settings and double-checked that all PHYSICAL, but not virtual adapters use localhost DNS server.

I have to say, I am not so good at coding. Nevertheless, I suspect that an issue is in function isResolverLoopback in networkmanager_windows.cpp file.
(For some reason, unknown to me, I can't attach files, so I'll paste the part of code)

bool NetworkMgrWindows::isResolverLoopback() const
{
if ( interfaces.empty() ) {
qDebug("No interfaces found");
return false;
}

**return std::all_of(interfaces.begin(), interfaces.end(),**
                   **[](const auto& iface)**
                   **{**
                      **return (iface.is_running() ? iface.is_resolver_loopback() : true);**
                   **});**

}

As far as I understand it goes through all adapters (not just physical) and returns false if any of them does not use localhost DNS server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions