From e0e09cee6c451e6815ec695d8c952e4fe00b2937 Mon Sep 17 00:00:00 2001 From: Brian West Date: Wed, 3 Jun 2009 19:25:42 +0000 Subject: [PATCH] adding loopback.auto git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13586 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_core.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/switch_core.c b/src/switch_core.c index b766dfd8a9..c82e04e0bf 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -904,6 +904,12 @@ SWITCH_DECLARE(void) switch_load_network_lists(switch_bool_t reload) switch_network_list_add_cidr(rfc_list, "192.168.0.0/16", SWITCH_TRUE); switch_core_hash_insert(IP_LIST.hash, tmp_name, rfc_list); + tmp_name = "loopback.auto"; + switch_network_list_create(&rfc_list, tmp_name, SWITCH_FALSE, IP_LIST.pool); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Created ip list %s default (deny)\n", tmp_name); + switch_network_list_add_cidr(rfc_list, "127.0.0.0/8", SWITCH_TRUE); + switch_core_hash_insert(IP_LIST.hash, tmp_name, rfc_list); + tmp_name = "localnet.auto"; switch_network_list_create(&list, tmp_name, SWITCH_FALSE, IP_LIST.pool); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Created ip list %s default (deny)\n", tmp_name);