fix: restore dns after using xray (#1902)

This commit is contained in:
Yaroslav Gurov
2025-10-02 14:58:53 +02:00
committed by GitHub
parent 30c8cc4548
commit 3ea47d31a9
12 changed files with 32 additions and 0 deletions

View File

@@ -36,5 +36,6 @@ class IpcInterface
SLOT( bool enablePeerTraffic( const QJsonObject &configStr) );
SLOT( bool enableKillSwitch( const QJsonObject &excludeAddr, int vpnAdapterIndex) );
SLOT( bool updateResolvers(const QString& ifname, const QList<QHostAddress>& resolvers) );
SLOT( bool restoreResolvers() );
};

View File

@@ -157,6 +157,10 @@ bool IpcServer::updateResolvers(const QString &ifname, const QList<QHostAddress>
return Router::updateResolvers(ifname, resolvers);
}
bool IpcServer::restoreResolvers() {
return Router::restoreResolvers();
}
void IpcServer::StartRoutingIpv6()
{
Router::StartRoutingIpv6();

View File

@@ -42,6 +42,7 @@ public:
virtual bool disableKillSwitch() override;
virtual bool refreshKillSwitch( bool enabled ) override;
virtual bool updateResolvers(const QString& ifname, const QList<QHostAddress>& resolvers) override;
virtual bool restoreResolvers() override;
private:
int m_localpid = 0;