mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
migrated to sdbus-cpp v2
This commit is contained in:
@@ -63,7 +63,7 @@ std::string WifiLanServerSocket::GetIPAddress() const {
|
||||
}
|
||||
|
||||
if (address_data.size() > 0) {
|
||||
std::string ip_address = address_data[0]["address"];
|
||||
std::string ip_address = address_data[0]["address"].get<std::string>();
|
||||
struct in_addr addr {};
|
||||
if (inet_aton(ip_address.c_str(), &addr) == 0) {
|
||||
LOG(ERROR) << __func__
|
||||
|
||||
Reference in New Issue
Block a user