🐞 fix(反控): 修改反控端口号

This commit is contained in:
huheng@kylinos.cn 2022-11-08 14:06:52 +08:00
parent e5ff70b22a
commit 1362ec86f4
1 changed files with 4 additions and 2 deletions

View File

@ -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);
}