diff --git a/MessageClient.cpp b/MessageClient.cpp index 9eff0ab5..5234ee11 100644 --- a/MessageClient.cpp +++ b/MessageClient.cpp @@ -196,7 +196,7 @@ public: if (auto const & list = info.addresses(); !list.isEmpty()) { - host_ = list.at(0); + host_ = list.first(); ping();