aboutsummaryrefslogtreecommitdiff
path: root/src/network/serverinfo.cpp
diff options
context:
space:
mode:
authorLeifa <26681464+TrickyLeifa@users.noreply.github.com>2024-07-09 13:07:30 +0200
committerGitHub <noreply@github.com>2024-07-09 13:07:30 +0200
commitefd2571459924f40718130f7edd28a72a76b12d7 (patch)
tree91751194abb0bfe1306976d676740b43a53dd81b /src/network/serverinfo.cpp
parent662d4781d2653e02b9f3727a9299ded8c7b1eaa2 (diff)
Remove TCP entry point (#1007)
* Remove TCP entry point Resolve #987 * Remove TCP entry point * Servers that do not support WebSocket will be marked as `Legacy` * Removal of TCP connection from the master will follow later. * Tweaked error message
Diffstat (limited to 'src/network/serverinfo.cpp')
-rw-r--r--src/network/serverinfo.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/network/serverinfo.cpp b/src/network/serverinfo.cpp
new file mode 100644
index 00000000..1762866d
--- /dev/null
+++ b/src/network/serverinfo.cpp
@@ -0,0 +1,6 @@
+#include "serverinfo.h"
+
+QString ServerInfo::toString() const
+{
+ return QString("%1 (%2:%3)").arg(name.isEmpty() ? QStringLiteral("Unnamed Server") : name).arg(address).arg(port);
+}