diff --git a/src/mod/event_handlers/mod_event_socket/mod_event_socket.c b/src/mod/event_handlers/mod_event_socket/mod_event_socket.c index ac98415aad..7e3bd13d43 100644 --- a/src/mod/event_handlers/mod_event_socket/mod_event_socket.c +++ b/src/mod/event_handlers/mod_event_socket/mod_event_socket.c @@ -2244,7 +2244,7 @@ static int config(void) prefs.nat_map = 0; } - if (prefs.nat_map && !switch_check_network_list_ip(prefs.ip, "loopback.auto")) { + if (prefs.nat_map && switch_check_network_list_ip(prefs.ip, "loopback.auto")) { prefs.nat_map = 0; }