Skip to content

Commit

Permalink
Call on_firewall when receiving data on a different socket (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperisager authored Sep 22, 2023
1 parent fd0f8e6 commit bfd997e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/udx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1186,7 +1186,7 @@ process_packet (udx_socket_t *socket, char *buf, ssize_t buf_len, struct sockadd
if (stream == NULL || stream->status & UDX_STREAM_DEAD) return 0;

// We expect this to be a stream packet from now on
if (!(stream->status & UDX_STREAM_CONNECTED) && stream->on_firewall != NULL) {
if (stream->socket != socket && stream->on_firewall != NULL) {
if (is_addr_v4_mapped((struct sockaddr *) addr)) {
addr_to_v4((struct sockaddr_in6 *) addr);
}
Expand Down

0 comments on commit bfd997e

Please sign in to comment.