Commit 559f56cf by “liusq”

修改命令为sudo

parent 4e92ddc7
...@@ -453,7 +453,7 @@ inline bool GetNetworkInfoByQNetworkInterface(QString &mac, QString &subnetMask, ...@@ -453,7 +453,7 @@ inline bool GetNetworkInfoByQNetworkInterface(QString &mac, QString &subnetMask,
// 获取网关地址 // 获取网关地址
QProcess process; QProcess process;
process.start("ip", QStringList() << "route"); process.start("sudo", QStringList() << "/sbin/ip" << "route");
if (!process.waitForStarted()) { if (!process.waitForStarted()) {
qInfo() << "Failed to start 'ip route' process."; qInfo() << "Failed to start 'ip route' process.";
continue; continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment