From 1bf9f2ed28f0aab6f795ba8e760eabf0d367ff17 Mon Sep 17 00:00:00 2001 From: Martin Schimandl Date: Wed, 2 Oct 2019 20:52:05 +0200 Subject: [PATCH] Fix diagnostics failed to make connection to NTP server --- src/qt/diagnosticsdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qt/diagnosticsdialog.cpp b/src/qt/diagnosticsdialog.cpp index 318a63c73a..772620ffe4 100644 --- a/src/qt/diagnosticsdialog.cpp +++ b/src/qt/diagnosticsdialog.cpp @@ -326,7 +326,7 @@ void DiagnosticsDialog::clkStateChanged(QAbstractSocket::SocketState state) char NTPMessage[48] = {0x1b, 0, 0, 0 ,0, 0, 0, 0, 0}; - udpSocket->writeDatagram(NTPMessage, sizeof(NTPMessage), udpSocket->peerAddress(), udpSocket->peerPort()); + udpSocket->write(NTPMessage, sizeof(NTPMessage)); } return;