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

@ -34,10 +34,10 @@ bool Router::clearSavedRoutes()
#endif
}
bool Router::routeDelete(const QString &ip)
bool Router::routeDelete(const QString &ip, const QString &gw)
{
#ifdef Q_OS_WIN
return RouterWin::Instance().routeDelete(ip);
return RouterWin::Instance().routeDelete(ip, gw);
#elif defined (Q_OS_MAC)
return RouterMac::Instance().routeDelete(ip);
#endif