FS-535: fix issue in is_lan_addr where 172.2 would match 172.250.x.x which is not RFC1918 this also fixes an chicken egg issue

This commit is contained in:
Brian West
2010-11-23 18:35:45 -06:00
parent 0bd8d187e0
commit dad92067da
2 changed files with 20 additions and 7 deletions
+1 -1
View File
@@ -2173,7 +2173,7 @@ static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag)
register_host = sofia_glue_get_register_host(gateway->register_proxy);
if (register_host && !sofia_glue_check_nat(profile, register_host)) {
if (register_host && switch_is_lan_addr(register_host)) {
sipip = profile->sipip;
}