diff --git a/src/webui/api/synccontroller.cpp b/src/webui/api/synccontroller.cpp
index 86b900893..e5b30785e 100644
--- a/src/webui/api/synccontroller.cpp
+++ b/src/webui/api/synccontroller.cpp
@@ -550,7 +550,7 @@ void SyncController::torrentPeersAction()
peer[KEY_PEER_COUNTRY] = Net::GeoIPManager::CountryName(pi.country());
}
- peers[pi.address().ip.toString() + ':' + QString::number(pi.address().port)] = peer;
+ peers[pi.address().toString()] = peer;
}
data["peers"] = peers;
diff --git a/src/webui/www/private/views/preferences.html b/src/webui/www/private/views/preferences.html
index edbb642d5..696eea33e 100644
--- a/src/webui/www/private/views/preferences.html
+++ b/src/webui/www/private/views/preferences.html
@@ -356,11 +356,11 @@