Commit 0aab694b by Amnes1a

删除不必要的宏定义

parent 3799713d
......@@ -37,9 +37,8 @@ void FMPVipServer::Write(const QByteArray &data)
return;
}
QString ip = FMPVipSettings::instance()->getMonitorServer();
QTcpSocket client;
client.connectToHost(ip, 23771);
client.connectToHost("127.0.0.1", 23771);
if(!client.waitForConnected())
{
FMP_ERROR() << "Connect monitor failed. " << client.errorString();
......
......@@ -27,11 +27,6 @@ bool FMPVipSettings::getIsNeedSocketHeader()
return _GetValue(FMP_INIKEY_NEEDSOCKETHEADER, false).toBool();
}
QString FMPVipSettings::getMonitorServer()
{
return _GetValue(FMP_INIKEY_MONITORSERVER, "127.0.0.1").toString();
}
QVariant FMPVipSettings::_GetValue(const QString &key, QVariant defaultValue)
{
if (_settings) {
......
......@@ -16,7 +16,6 @@ public:
QString getServerUrl();
bool getIsNeedSocketHeader();
QString getMonitorServer();
private:
explicit FMPVipSettings(QObject *parent = 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment