|
|
|
@ -110,6 +110,9 @@ QString WifiManager::get_ipv4_address(){ |
|
|
|
|
QDBusObjectPath pth = get_response<QDBusObjectPath>(nm.call("Get", connection_iface, "Ip4Config")); |
|
|
|
|
QString ip4config = pth.path(); |
|
|
|
|
|
|
|
|
|
QString type = get_response<QString>(nm.call("Get", connection_iface, "Type")); |
|
|
|
|
|
|
|
|
|
if (type == "802-11-wireless") { |
|
|
|
|
QDBusInterface nm2(nm_service, ip4config, props_iface, bus); |
|
|
|
|
const QDBusArgument &arr = get_response<QDBusArgument>(nm2.call("Get", ipv4config_iface, "AddressData")); |
|
|
|
|
QMap<QString, QVariant> pth2; |
|
|
|
@ -122,6 +125,7 @@ QString WifiManager::get_ipv4_address(){ |
|
|
|
|
} |
|
|
|
|
arr.endArray(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return ""; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|