mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-15 07:44:13 +00:00
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:
1 parent
0bd8d187e0
commit
dad92067da
2 files changed
+20
-7
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user