diff --git a/CellFrameDashboardService/DapChainDashboardService.cpp b/CellFrameDashboardService/DapChainDashboardService.cpp index 4b4dbda508e94f6a3470b2cb7df74edddfde5a4c..1f3ca41a5835e703cc215076afb6827b53027613 100755 --- a/CellFrameDashboardService/DapChainDashboardService.cpp +++ b/CellFrameDashboardService/DapChainDashboardService.cpp @@ -9,7 +9,7 @@ DapChainDashboardService::DapChainDashboardService() : DapRpcService(nullptr) connect(m_pDapChainLogHandler, SIGNAL(onChangedLog()), SLOT(changedLogModel())); m_pDapChainWalletHandler = new DapChainWalletHandler(this); connect(this, &DapChainDashboardService::onNewClientConnected, [=] { - qDebug() << "New client"; + qDebug() << "Frontend connected"; }); m_pDapChainNodeHandler = new DapChainNodeNetworkHandler(this); @@ -29,8 +29,8 @@ bool DapChainDashboardService::start() { qInfo() << "DapChainDashboardService::start()"; - m_pSocketService = new DapUiSocketServer(); m_pServer = new DapUiService(); + m_pServer->setSocketOptions(QLocalServer::WorldAccessOption ); if(m_pServer->listen(DAP_BRAND)) { connect(m_pServer, SIGNAL(onClientConnected()), SIGNAL(onNewClientConnected())); diff --git a/CellFrameDashboardService/DapChainDashboardService.h b/CellFrameDashboardService/DapChainDashboardService.h index 3e246b76d96aaf363be39b4f974b165ca1679822..bfe15db2e9096f28368f28002930325c6200953b 100755 --- a/CellFrameDashboardService/DapChainDashboardService.h +++ b/CellFrameDashboardService/DapChainDashboardService.h @@ -32,7 +32,6 @@ #include <QLocalServer> typedef class DapRpcLocalServer DapUiService; -typedef class QLocalServer DapUiSocketServer; /** * @brief The DapChainDashboardService class @@ -53,8 +52,6 @@ class DapChainDashboardService : public DapRpcService Q_CLASSINFO("serviceName", "RPCServer") /// Service core. DapUiService * m_pServer {nullptr}; - /// Socket of client connection with the service. - DapUiSocketServer * m_pSocketService {nullptr}; /// Recipient logs information DapChainLogHandler * m_pDapChainLogHandler {nullptr}; /// Recipient wallet information diff --git a/debian/share/init.d/cellframe-dashboard.service b/debian/share/init.d/cellframe-dashboard.service index 5216e33045dc687e1569a22dd2dacce0a4e6524b..00da6e14b1bf225c24171fc86bcc6fe097d7670f 100644 --- a/debian/share/init.d/cellframe-dashboard.service +++ b/debian/share/init.d/cellframe-dashboard.service @@ -5,7 +5,7 @@ After=network.target [Service] Type=forking OOMScoreAdjust=-1000 -PIDFile=/opt/cellframe-dashboard/CellFrameDashboardService.pid +#PIDFile=/opt/cellframe-dashboard/CellFrameDashboardService.pid WorkingDirectory=/opt/cellframe-dashboard/ ExecStart=/opt/cellframe-dashboard/bin/CellFrameDashboardService -D ExecStop=/opt/cellframe-dashboard/bin/CellFrameDashboardService --stop diff --git a/libdap-qt b/libdap-qt index ab606d8b0fda2218ea4ad760a424008319f76298..96629d270265f9b75c8c289b7b2ab45ce8f75df3 160000 --- a/libdap-qt +++ b/libdap-qt @@ -1 +1 @@ -Subproject commit ab606d8b0fda2218ea4ad760a424008319f76298 +Subproject commit 96629d270265f9b75c8c289b7b2ab45ce8f75df3