don't nat map where its loopback

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13589 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2009-06-03 19:42:53 +00:00
parent e0e09cee6c
commit b28bd6b9d2
1 changed files with 4 additions and 0 deletions

View File

@ -2244,6 +2244,10 @@ static int config(void)
prefs.nat_map = 0;
}
if (prefs.nat_map && !switch_check_network_list_ip(prefs.ip, "loopback.auto")) {
prefs.nat_map = 0;
}
if (!prefs.port) {
prefs.port = 8021;
}