Macos route delete fix
This commit is contained in:
parent
85b6b06cc9
commit
f9affb083b
3 changed files with 4 additions and 4 deletions
|
@ -45,13 +45,13 @@ bool RouterMac::clearSavedRoutes()
|
|||
// return (cnt == m_addedRoutes.count());
|
||||
}
|
||||
|
||||
bool RouterMac::routeDelete(const QString &ip)
|
||||
bool RouterMac::routeDelete(const QString &ip, const QString &gw)
|
||||
{
|
||||
// route delete ip gw
|
||||
QProcess p;
|
||||
p.setProcessChannelMode(QProcess::MergedChannels);
|
||||
|
||||
p.start("route", QStringList() << "delete" << ip);
|
||||
p.start("route", QStringList() << "delete" << ip << gw);
|
||||
p.waitForFinished();
|
||||
qDebug().noquote() << "OUTPUT routeDelete: " + p.readAll();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue