summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Henry <[email protected]>2023-08-02 09:20:55 -0700
committerGitHub <[email protected]>2023-08-02 09:20:55 -0700
commitf5eee8d25a424c52283d7b59d8b83dc06f825309 (patch)
treef6d89de0721b1ba8331f451415e093d943ac9e20
parent928d08c482d22babbf0bf936baffbb5b71599142 (diff)
parentaede837fea21116ac74586c924713781d01e6077 (diff)
Merge pull request #237 from zerotier/brenton/fix-switch
Fix: warning: enumeration value 'TCP_HTTP_OUTGOING' not handled in sw…
-rw-r--r--src/NodeService.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/NodeService.cpp b/src/NodeService.cpp
index d0b52e5..b25bb80 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) {