route delete fixed (Windows)

This commit is contained in:
pokamest 2021-03-18 22:13:05 +03:00
parent d831d68e73
commit c2f6c7d939
10 changed files with 24 additions and 15 deletions

View file

@ -10,7 +10,7 @@ class IpcInterface
SLOT( bool routeAdd(const QString &ip, const QString &gw, const QString &mask) );
SLOT( int routeAddList(const QString &gw, const QStringList &ips) );
SLOT( bool clearSavedRoutes() );
SLOT( bool routeDelete(const QString &ip) );
SLOT( bool routeDelete(const QString &ip, const QString &gw) );
SLOT( void flushDns() );
SLOT( bool checkAndInstallDriver() );

View file

@ -68,9 +68,9 @@ bool IpcServer::clearSavedRoutes()
return Router::clearSavedRoutes();
}
bool IpcServer::routeDelete(const QString &ip)
bool IpcServer::routeDelete(const QString &ip, const QString &gw)
{
return Router::routeDelete(ip);
return Router::routeDelete(ip, gw);
}
void IpcServer::flushDns()

View file

@ -18,7 +18,7 @@ public:
virtual bool routeAdd(const QString &ip, const QString &gw, const QString &mask = QString()) override;
virtual int routeAddList(const QString &gw, const QStringList &ips) override;
virtual bool clearSavedRoutes() override;
virtual bool routeDelete(const QString &ip) override;
virtual bool routeDelete(const QString &ip, const QString &gw) override;
virtual void flushDns() override;
virtual bool checkAndInstallDriver() override;
virtual QStringList getTapList() override;