Skip to content

Commit

Permalink
release 1.2.1
Browse files Browse the repository at this point in the history
release version 1.2.1
  • Loading branch information
rangaofei committed Apr 27, 2022
1 parent d30d621 commit 5da566a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/ServerModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void ServerModel::kill(QStringList &list) {


void ServerModel::getAddr() {
emit appendLocalAddr("0:0:0:0");
emit appendLocalAddr("0:0:0:0");
QList<QHostAddress> lst = QNetworkInterface::allAddresses();
foreach (QHostAddress a, lst) {
if (QAbstractSocket::IPv4Protocol == a.protocol()) {
Expand Down Expand Up @@ -111,7 +111,7 @@ void ServerModel::send(const QString &key, const QString &data) {
qDebug() << ("bad data format to send: " + err);
else
qDebug()<<bin<<"==bin";
sendToDst(v, bin);
sendToDst(v, bin);
}
}

Expand Down
1 change: 1 addition & 0 deletions src/ServerModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public slots:
/**
* qml槽
* 获取本机ip地址
* 作为服务端时,需添加0:0:0:0
*/
void getAddr();

Expand Down
8 changes: 4 additions & 4 deletions src/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

#define MAJOR_VERSION 1
#define MINOR_VERSION 2
#define PATCH_VERSION 0
#define PATCH_VERSION 1

#define YEAR 2021
#define MONTH 12
#define DAY 20
#define YEAR 2022
#define MONTH 04
#define DAY 27

class Config : public QObject
{
Expand Down

0 comments on commit 5da566a

Please sign in to comment.