Commit 081b1ab8 authored by Danil Martynenko's avatar Danil Martynenko

bugs-4074-1 [*] fixed

parent 99bbf6ea
......@@ -410,7 +410,13 @@ void ChChainNetSrvVpn::onPktIn(DapChannelPacket* pkt)
delete pkt;
}
void ChChainNetSrvVpn::saveCurrentServer(const DapServerInfoList &nodelist)
{
for(auto server : nodelist) {
if (server.address == upstreamAddress() && server.name != "Auto")
m_currentServer = server;
}
}
......
......@@ -89,6 +89,9 @@ namespace Dap {
// METHODS
QString m_addr, m_gw;
QTcpServer *m_fdListener;
DapServerInfo m_currentServer;
private slots:
void onFwServerConnected();
void onFwClientReadyRead();
......@@ -115,6 +118,7 @@ namespace Dap {
}
QString upstreamAddress(){return tun->upstreamAddress();}
DapServerInfo currentServer(){return m_currentServer;}
void tunCreate (const QString& a_addr, const QString& a_gw);
void workerStart(int a_tunSocket);
......@@ -145,6 +149,8 @@ namespace Dap {
void tunCreate(); // create with all predefined before values
void tunDestroy();
void tunStandby();
void saveCurrentServer(const DapServerInfoList &nodelist);
};
}
......
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