From 6f6c57ce0314b751f88dd3e2017b5ec255255f04 Mon Sep 17 00:00:00 2001 From: Chris Rienzo Date: Fri, 14 Mar 2014 14:33:38 -0400 Subject: [PATCH] mod_rayo: fix regression in ACL --- src/mod/event_handlers/mod_rayo/xmpp_streams.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/event_handlers/mod_rayo/xmpp_streams.c b/src/mod/event_handlers/mod_rayo/xmpp_streams.c index fee27dc7a7..3667424665 100644 --- a/src/mod/event_handlers/mod_rayo/xmpp_streams.c +++ b/src/mod/event_handlers/mod_rayo/xmpp_streams.c @@ -1610,7 +1610,7 @@ static void *SWITCH_THREAD_FUNC xmpp_listener_thread(switch_thread_t *thread, vo /* check if connection is allowed */ if (listener->acl) { - if (switch_check_network_list_ip(remote_ip, listener->acl)) { + if (!switch_check_network_list_ip(remote_ip, listener->acl)) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "ACL %s denies access to %s.\n", listener->acl, remote_ip); switch_socket_shutdown(socket, SWITCH_SHUTDOWN_READWRITE); switch_socket_close(socket);