diff options
| author | Brenton Bostick <[email protected]> | 2023-08-02 12:11:47 -0400 |
|---|---|---|
| committer | Brenton Bostick <[email protected]> | 2023-08-02 12:11:47 -0400 |
| commit | aede837fea21116ac74586c924713781d01e6077 (patch) | |
| tree | 3fc7c7ac3c819e106664654210ea09d1301aede7 | |
| parent | 02dbc8fa787574b3ccac238bc836654f5121e482 (diff) | |
Fix: warning: enumeration value 'TCP_HTTP_OUTGOING' not handled in switch [-Wswitch]
| -rw-r--r-- | src/NodeService.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/NodeService.cpp b/src/NodeService.cpp index 5f1c31d..501b5b8 100644 --- a/src/NodeService.cpp +++ b/src/NodeService.cpp @@ -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) { |
