summaryrefslogtreecommitdiff
path: root/Network/PSKReporter.cpp
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-09-26 23:24:03 +0200
committerChristoph Berg <myon@debian.org>2026-09-26 23:24:03 +0200
commit059831534c7e884f0a607ed86b582fd00d821731 (patch)
tree76bcb67a78f8aa2654fd34c2ad801a62136b0170 /Network/PSKReporter.cpp
parentd83a420f0517d7fc47aeb288a6a0cf4891784fcc (diff)
New upstream version 3.2.0~rc1+dfsgupstream/3.2.0_rc1+dfsg
Diffstat (limited to 'Network/PSKReporter.cpp')
-rw-r--r--Network/PSKReporter.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/Network/PSKReporter.cpp b/Network/PSKReporter.cpp
index 5a0eac26..b91713ee 100644
--- a/Network/PSKReporter.cpp
+++ b/Network/PSKReporter.cpp
@@ -32,10 +32,6 @@
namespace
{
- QLatin1String HOST {"report.pskreporter.info"};
- // QLatin1String HOST {"127.0.0.1"};
- quint16 SERVICE_PORT {4739};
- // quint16 SERVICE_PORT {14739};
int MIN_SEND_INTERVAL {120}; // in seconds
int FLUSH_INTERVAL {MIN_SEND_INTERVAL + 5}; // in send intervals
int MAX_PENDING_SPOTS {2048};
@@ -162,8 +158,11 @@ public:
// use this for pseudo connection with UDP, allows us to use
// QIODevice::write() instead of QUDPSocket::writeDatagram()
- socket_->connectToHost (HOST, SERVICE_PORT, QAbstractSocket::WriteOnly);
- LOG_LOG_LOCATION (logger_, debug, "remote host: " << HOST.latin1 () << " port: " << SERVICE_PORT);
+ socket_->connectToHost (options_.destination_host, options_.destination_port,
+ QAbstractSocket::WriteOnly);
+ LOG_LOG_LOCATION (logger_, debug,
+ "remote host: " << qPrintable (options_.destination_host)
+ << " port: " << options_.destination_port);
if (!report_timer_.isActive ())
{