From 1362ec86f4ffdde4320e9659094c6c43f34e7098 Mon Sep 17 00:00:00 2001 From: "huheng@kylinos.cn" Date: Tue, 8 Nov 2022 14:06:52 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(=E5=8F=8D=E6=8E=A7):=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=8D=E6=8E=A7=E7=AB=AF=E5=8F=A3=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pcscreenmanage/control/control.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pcscreenmanage/control/control.cpp b/pcscreenmanage/control/control.cpp index 60cdf36..06ccbf0 100644 --- a/pcscreenmanage/control/control.cpp +++ b/pcscreenmanage/control/control.cpp @@ -3,6 +3,8 @@ #include #include +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); } \ No newline at end of file