diff options
Diffstat (limited to 'network')
-rw-r--r-- | network/connection.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/network/connection.c b/network/connection.c index 2bbd3e60..cd1e0a5d 100644 --- a/network/connection.c +++ b/network/connection.c @@ -509,6 +509,8 @@ static DBusHandlerResult get_info(DBusConnection *conn, DBusMessageIter iter; DBusMessageIter dict; const char *uuid; + char raddr[18]; + const char *paddr = raddr; reply = dbus_message_new_method_return(msg); if (!reply) @@ -528,6 +530,10 @@ static DBusHandlerResult get_info(DBusConnection *conn, dbus_message_iter_append_dict_entry(&dict, "uuid", DBUS_TYPE_STRING, &uuid); + ba2str(&nc->dst, raddr); + dbus_message_iter_append_dict_entry(&dict, "address", + DBUS_TYPE_STRING, &paddr); + dbus_message_iter_close_container(&iter, &dict); return send_message_and_unref(conn, reply); |