更新NTP时间校对
parent
b25fdeee9f
commit
0ee67807f0
|
@ -33,7 +33,7 @@
|
|||
<item row="0" column="1">
|
||||
<widget class="QLineEdit" name="txtNtpIP">
|
||||
<property name="text">
|
||||
<string>133.100.11.8</string>
|
||||
<string>ntp1.aliyun.com</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
|
@ -18,7 +18,7 @@ NtpClient *NtpClient::Instance()
|
|||
|
||||
NtpClient::NtpClient(QObject *parent) : QObject(parent)
|
||||
{
|
||||
ntpIP = "202.120.2.101";
|
||||
ntpIP = "ntp1.aliyun.com";
|
||||
|
||||
udpSocket = new QUdpSocket(this);
|
||||
connect(udpSocket, SIGNAL(connected()), this, SLOT(sendData()));
|
||||
|
|
Loading…
Reference in New Issue