提交 da72bfb9 authored 作者: Brian West's avatar Brian West

tweak configs slightly to use the acl for rfc1918 check

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7971 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 5d81e456
......@@ -40,8 +40,8 @@
<extension name="global" continue="true">
<condition field="${network_addr}" expression="^$" break="never">
<action application="set" data="use_profile=${cond(${is_lan_addr($${local_ip_v4})} == yes ? nat : default)}"/>
<anti-action application="set" data="use_profile=${cond(${is_lan_addr(${network_addr})} == yes ? nat : default)}"/>
<action application="set" data="use_profile=${cond(${acl($${local_ip_v4} rfc1918)} == true ? nat : default)}"/>
<anti-action application="set" data="use_profile=${cond(${acl(${network_addr} rfc1918)} == true ? nat : default)}"/>
</condition>
<!-- This will setup some variables if the user isn't authenticated.
numbering_plan is required for the demo to function properly.
......
......@@ -505,7 +505,7 @@ ok:
SWITCH_STANDARD_API(lan_addr_function)
{
stream->write_function(stream, "%s", switch_is_lan_addr(cmd) ? "yes" : "no");
stream->write_function(stream, "%s", switch_is_lan_addr(cmd) ? "true" : "false");
return SWITCH_STATUS_SUCCESS;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论