Skip to content

Commit

Permalink
Merge pull request #237 from zerotier/brenton/fix-switch
Browse files Browse the repository at this point in the history
Fix: warning: enumeration value 'TCP_HTTP_OUTGOING' not handled in sw…
  • Loading branch information
joseph-henry authored Aug 2, 2023
2 parents 928d08c + aede837 commit f5eee8d
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 f5eee8d

Please sign in to comment.