feat: Change gateway settings in NetworkManager

This commit is contained in:
sunwen
2024-06-24 17:20:16 +08:00
parent 78cb0de2d3
commit 9d89a06c67
3 changed files with 3 additions and 2 deletions

View File

@@ -63,6 +63,7 @@ void NetworkManager::initNetworkInfo()
mIsDHCP = !entry.isPermanent();
mIpAddress = entry.ip().toString();
mSubNetMask = entry.netmask().toString();
mGateway = JsonObject::Instance()->getDefaultIpAddr().gateway;
return;
}
}