Skip to content
Snippets Groups Projects
Commit ef7baa8c authored by alexandr.kravchenko's avatar alexandr.kravchenko Committed by dmitriy.gerasimov
Browse files

fixed mac compilation

parent 672f0521
No related branches found
No related tags found
No related merge requests found
......@@ -371,8 +371,8 @@ void ChChainNetSrvVpn::onPktIn(DapChannelPacket* pkt)
quint32 l_addr,l_gw;
::memcpy(&l_addr, pktSF->data,sizeof (l_addr));
::memcpy(&l_gw, pktSF->data+sizeof (l_addr),sizeof (l_addr));
QString new_addr = QHostAddress( ::ntohl(l_addr) ).toString();
QString new_gw = QHostAddress( ::ntohl ( l_gw )).toString();
QString new_addr = QHostAddress( ntohl(l_addr) ).toString();
QString new_gw = QHostAddress( ntohl ( l_gw )).toString();
if (m_addr == new_addr && new_gw == m_gw) {
qDebug() << "Net config is the same, we don't touch Tun";
emit netConfigReceivedSame();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment