🐞 fix(反控): 修改反控端口号
This commit is contained in:
parent
e5ff70b22a
commit
1362ec86f4
|
@ -3,6 +3,8 @@
|
|||
#include <QDir>
|
||||
#include <QDebug>
|
||||
|
||||
const int CONTROL_PORT = 27191;
|
||||
|
||||
Control::Control(QObject *parent) : QObject(parent)
|
||||
{
|
||||
m_process = new QProcess(this);
|
||||
|
@ -43,7 +45,7 @@ void Control::startServer()
|
|||
QString serverpara = "anti-control-server -f --debug DEBUG --name server --disable-crypto --log " + QDir::homePath()
|
||||
+ "/.log/kylin-connectivity-control.log --disable-client-cert-checking"
|
||||
" -c "
|
||||
+ "/usr/share/kylin-connectivity/control.conf --address :27194";
|
||||
+ "/usr/share/kylin-connectivity/control.conf --address :" + QString::number(CONTROL_PORT);
|
||||
qInfo() << "Anti control server starting...";
|
||||
m_process->start(serverpara);
|
||||
}
|
||||
|
@ -54,7 +56,7 @@ void Control::startClient(QString address)
|
|||
QString clientpara = "anti-control-client -f --debug DEBUG --name client --disable-crypto --log " + QDir::homePath()
|
||||
+ "/.log/kylin-connectivity-control.log"
|
||||
" ["
|
||||
+ address + "]:27194 ";
|
||||
+ address + "]:" + QString::number(CONTROL_PORT);
|
||||
qInfo() << "Anti control client starting..";
|
||||
m_process->start(clientpara);
|
||||
}
|
Loading…
Reference in New Issue