Skip to content

Commit

Permalink
Fix: warning: enumeration value 'TCP_HTTP_OUTGOING' not handled in sw…
Browse files Browse the repository at this point in the history
…itch [-Wswitch]
  • Loading branch information
bostick committed Aug 2, 2023
1 parent 02dbc8f commit aede837
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/NodeService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,10 @@ void NodeService::phyOnTcpData(PhySocket* sock, void** uptr, void* data, unsigne
TcpConnection* tc = reinterpret_cast<TcpConnection*>(*uptr);
tc->lastReceive = OSUtils::now();
switch (tc->type) {
case TcpConnection::TCP_UNCATEGORIZED_INCOMING:
case TcpConnection::TCP_HTTP_INCOMING:
case TcpConnection::TCP_HTTP_OUTGOING:
break;
case TcpConnection::TCP_TUNNEL_OUTGOING:
tc->readq.append((const char*)data, len);
while (tc->readq.length() >= 5) {
Expand Down

0 comments on commit aede837

Please sign in to comment.