Skip to content

Commit

Permalink
proto_hep: Fix TLS connection reuse
Browse files Browse the repository at this point in the history
  • Loading branch information
benceszigeti committed Aug 18, 2023
1 parent 5afeb6a commit 42ba430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/proto_hep/proto_hep.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ static int hep_tcp_or_tls_send(struct socket_info* send_sock,
if (to) {
su2ip_addr(&ip, to);
port=su_getport(to);
n = tcp_conn_get(id, &ip, port, PROTO_HEP_TCP, NULL, &c, &fd, send_sock);
n = tcp_conn_get(id, &ip, port, is_tls ? PROTO_HEP_TLS : PROTO_HEP_TCP, NULL, &c, &fd, send_sock);
} else if (id) {
n = tcp_conn_get(id, 0, 0, PROTO_NONE, NULL, &c, &fd, NULL);
} else {
Expand Down

0 comments on commit 42ba430

Please sign in to comment.