mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-30 09:56:14 -05:00
remove unimplemented tcpOk flag
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1750 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
324b51e250
commit
32ea1bfd0f
@ -145,7 +145,7 @@ class RsConfig
|
||||
bool netDhtOk; /* response from dht */
|
||||
bool netExtOk; /* know our external address */
|
||||
bool netUdpOk; /* recvd stun / udp packets */
|
||||
bool netTcpOk; /* recvd incoming tcp */
|
||||
//bool netTcpOk; /* recvd incoming tcp */
|
||||
bool netResetReq;
|
||||
};
|
||||
|
||||
|
@ -130,7 +130,7 @@ int RsServer::UpdateAllConfig()
|
||||
config.netDhtOk = mConnMgr->getNetStatusDhtOk();
|
||||
config.netExtOk = mConnMgr->getNetStatusExtOk();
|
||||
config.netUdpOk = mConnMgr->getNetStatusUdpOk();
|
||||
config.netTcpOk = mConnMgr->getNetStatusTcpOk();
|
||||
//config.netTcpOk = mConnMgr->getNetStatusTcpOk();
|
||||
|
||||
/* update DHT/UPnP config */
|
||||
|
||||
|
@ -761,18 +761,9 @@ void NetworkDialog::getNetworkStatus()
|
||||
setLogInfo(tr("UDP Port is not active"), QString::fromUtf8("red"));
|
||||
}
|
||||
|
||||
if(config.netTcpOk)
|
||||
{
|
||||
setLogInfo(tr("TCP Port is active (TCP Server)"), QString::fromUtf8("green"));
|
||||
}
|
||||
else
|
||||
{
|
||||
setLogInfo(tr("TCP Port is not active"), QString::fromUtf8("red"));
|
||||
}
|
||||
|
||||
if (config.netExtOk)
|
||||
{
|
||||
if (config.netUpnpOk || config.netTcpOk)
|
||||
if (config.netUpnpOk)
|
||||
{
|
||||
setLogInfo(tr("RetroShare Server"), QString::fromUtf8("green"));
|
||||
}
|
||||
@ -846,21 +837,10 @@ void NetworkDialog::updateNetworkStatus()
|
||||
ui.iconlabel_udp->setPixmap(QPixmap::QPixmap(":/images/ledoff1.png"));
|
||||
ui.textlabel_udp->setText(tr("UDP Port is not active"));
|
||||
}
|
||||
|
||||
if(config.netTcpOk)
|
||||
{
|
||||
ui.iconlabel_tcp->setPixmap(QPixmap::QPixmap(":/images/ledon1.png"));
|
||||
ui.textlabel_tcp->setText(tr("TCP Port is active (TCP Server)"));
|
||||
}
|
||||
else
|
||||
{
|
||||
ui.iconlabel_tcp->setPixmap(QPixmap::QPixmap(":/images/ledoff1.png"));
|
||||
ui.textlabel_tcp->setText(tr("TCP Port is not active"));
|
||||
}
|
||||
|
||||
|
||||
if (config.netExtOk)
|
||||
{
|
||||
if (config.netUpnpOk || config.netTcpOk)
|
||||
if (config.netUpnpOk)
|
||||
{
|
||||
ui.iconlabel_netServer->setPixmap(QPixmap::QPixmap(":/images/ledon1.png"));
|
||||
|
||||
|
@ -141,7 +141,7 @@
|
||||
<enum>QTabWidget::North</enum>
|
||||
</property>
|
||||
<property name="currentIndex">
|
||||
<number>0</number>
|
||||
<number>1</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="log_tab">
|
||||
<attribute name="title">
|
||||
@ -402,33 +402,6 @@
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="4" column="0">
|
||||
<layout class="QGridLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="iconlabel_tcp">
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16</width>
|
||||
<height>16</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="pixmap">
|
||||
<pixmap resource="images.qrc">:/images/ledoff1.png</pixmap>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLabel" name="textlabel_tcp">
|
||||
<property name="text">
|
||||
<string>TCP Server</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
|
@ -103,20 +103,9 @@ void NATStatus::getNATStatus()
|
||||
iconLabel->setToolTip(tr("UDP Port is not reachable"));
|
||||
}
|
||||
|
||||
if(config.netTcpOk)
|
||||
{
|
||||
iconLabel->setPixmap(QPixmap::QPixmap(":/images/greenled.png"));
|
||||
iconLabel->setToolTip(tr("TCP Port is reachable"));
|
||||
}
|
||||
else
|
||||
{
|
||||
iconLabel->setPixmap(QPixmap::QPixmap(":/images/yellowled.png"));
|
||||
iconLabel->setToolTip(tr("TCP Port is not reachable"));
|
||||
}
|
||||
|
||||
if (config.netExtOk)
|
||||
{
|
||||
if (config.netUpnpOk || config.netTcpOk)
|
||||
if (config.netUpnpOk)
|
||||
{
|
||||
iconLabel->setPixmap(QPixmap::QPixmap(":/images/greenled.png"));
|
||||
iconLabel->setToolTip(tr("OK | RetroShare Server"));
|
||||
|
@ -145,7 +145,7 @@ class RsConfig
|
||||
bool netDhtOk; /* response from dht */
|
||||
bool netExtOk; /* know our external address */
|
||||
bool netUdpOk; /* recvd stun / udp packets */
|
||||
bool netTcpOk; /* recvd incoming tcp */
|
||||
//bool netTcpOk; /* recvd incoming tcp not implemented */
|
||||
bool netResetReq;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user