mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-10-01 03:43:51 +08:00
networking: properly set route metric for hotspot (#21265)
* Add dns priority to tethering connection
* it was route-metric
* only ipv4 is needed
old-commit-hash: 04ef4eeeda
This commit is contained in:
@@ -490,6 +490,7 @@ void WifiManager::addTetheringConnection() {
|
|||||||
address["prefix"] = 24u;
|
address["prefix"] = 24u;
|
||||||
connection["ipv4"]["address-data"] = QVariant::fromValue(IpConfig() << address);
|
connection["ipv4"]["address-data"] = QVariant::fromValue(IpConfig() << address);
|
||||||
connection["ipv4"]["gateway"] = "192.168.43.1";
|
connection["ipv4"]["gateway"] = "192.168.43.1";
|
||||||
|
connection["ipv4"]["route-metric"] = 1100;
|
||||||
connection["ipv6"]["method"] = "ignore";
|
connection["ipv6"]["method"] = "ignore";
|
||||||
|
|
||||||
QDBusInterface nm_settings(nm_service, nm_settings_path, nm_settings_iface, bus);
|
QDBusInterface nm_settings(nm_service, nm_settings_path, nm_settings_iface, bus);
|
||||||
|
|||||||
Reference in New Issue
Block a user