Skip to content

Commit 3559712

Browse files
wanghaEMQJaylinYu
authored andcommitted
* FIX [conf] Always enable ssl when it's a quic bridge.
Signed-off-by: wangha <wanghamax@gmail.com>
1 parent cb958a3 commit 3559712

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/supplemental/nanolib/conf_ver2.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,6 +1176,12 @@ conf_bridge_connector_parse_ver2(conf_bridge_node *node, cJSON *jso_connector)
11761176
conf_tls *bridge_node_tls = &(node->tls);
11771177

11781178
conf_tls_parse_ver2_base(bridge_node_tls, jso_tls);
1179+
#if defined(SUPP_QUIC)
1180+
if (node->address && strlen(node->address) > 9) {
1181+
if (0 == strncmp("mqtt-quic", node->address, 9))
1182+
bridge_node_tls->enable = true;
1183+
}
1184+
#endif
11791185

11801186
cJSON *jso_tcp = hocon_get_obj("tcp", jso_connector);
11811187
conf_tcp *bridge_node_tcp = &(node->tcp);

0 commit comments

Comments
 (0)