mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-19 22:19:05 +03:00
Proxy: Support passing safe-to-forward critical options for reverse proxy
This commit is contained in:
1 parent
e16613eab9
commit
0c563edfb7
1 file changed
+5
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user