From: Chris Rienzo Date: Fri, 14 Mar 2014 18:33:38 +0000 (-0400) Subject: mod_rayo: fix regression in ACL X-Git-Tag: v1.2.23~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5269931bfd633f9e4c8aca33e15015d6aeb13c51;p=thirdparty%2Ffreeswitch.git mod_rayo: fix regression in ACL --- diff --git a/src/mod/event_handlers/mod_rayo/xmpp_streams.c b/src/mod/event_handlers/mod_rayo/xmpp_streams.c index ed5cfa31c7..2d0ba28e1a 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);