Proxy: Support passing safe-to-forward critical options for reverse proxy

This commit is contained in:
Jon Shallow authored and Jon Shallow committed 2025-10-06 10:18:55 +01:00
1 parent e16613eab9
commit 0c563edfb7
1 file changed
+5
+5
View File
@@ -991,6 +991,11 @@ coap_option_check_critical(coap_session_t *session,
pdu->crit_opt = 1;
break;
}
if (COAP_PDU_IS_REQUEST(pdu) && ctx->unknown_resource &&
ctx->unknown_resource->is_reverse_proxy) {
pdu->crit_opt = 1;
break;
}
}
#endif /* COAP_SERVER_SUPPORT */
coap_log_debug("unknown critical option %d\n", opt_iter.number);