diff --git a/src/core/net/ip6.cpp b/src/core/net/ip6.cpp index 4d2170845..ff50d823d 100644 --- a/src/core/net/ip6.cpp +++ b/src/core/net/ip6.cpp @@ -1232,7 +1232,7 @@ otError Ip6::HandleDatagram(Message &aMessage, Netif *aNetif, const void *aLinkM } #if OPENTHREAD_CONFIG_UNSECURE_TRAFFIC_MANAGED_BY_STACK_ENABLE - if (aFromNcpHost && (nextHeader == kProtoTcp || nextHeader == kProtoUdp)) + if (nextHeader == kProtoTcp || nextHeader == kProtoUdp) { uint16_t dstPort;