Merge pull request #237 from zerotier/brenton/fix-switch

Fix: warning: enumeration value 'TCP_HTTP_OUTGOING' not handled in sw…
This commit is contained in:
Joseph Henry
2023-08-02 09:20:55 -07:00
committed by GitHub

View File

@@ -713,6 +713,10 @@ void NodeService::phyOnTcpData(PhySocket* sock, void** uptr, void* data, unsigne
TcpConnection* tc = reinterpret_cast<TcpConnection*>(*uptr); TcpConnection* tc = reinterpret_cast<TcpConnection*>(*uptr);
tc->lastReceive = OSUtils::now(); tc->lastReceive = OSUtils::now();
switch (tc->type) { switch (tc->type) {
case TcpConnection::TCP_UNCATEGORIZED_INCOMING:
case TcpConnection::TCP_HTTP_INCOMING:
case TcpConnection::TCP_HTTP_OUTGOING:
break;
case TcpConnection::TCP_TUNNEL_OUTGOING: case TcpConnection::TCP_TUNNEL_OUTGOING:
tc->readq.append((const char*)data, len); tc->readq.append((const char*)data, len);
while (tc->readq.length() >= 5) { while (tc->readq.length() >= 5) {