Browse Source

core/forward: Match protocol when forwarding

Xenofon Karamanos 1 năm trước cách đây
mục cha
commit
d81e511388
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/core/forward.h

+ 1 - 1
src/core/forward.h

@@ -189,7 +189,7 @@ static inline int msg_send_buffer(
 			if(tcp_connection_match == TCPCONN_MATCH_STRICT) {
 			if(tcp_connection_match == TCPCONN_MATCH_STRICT) {
 				con = tcpconn_lookup(dst->id, &ip, port, from,
 				con = tcpconn_lookup(dst->id, &ip, port, from,
 						(dst->send_sock) ? dst->send_sock->port_no : 0, 0,
 						(dst->send_sock) ? dst->send_sock->port_no : 0, 0,
-						PROTO_NONE);
+						dst->proto);
 			} else {
 			} else {
 				con = tcpconn_get(dst->id, &ip, port, from, 0);
 				con = tcpconn_get(dst->id, &ip, port, from, 0);
 			}
 			}