mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-04 13:57:31 -07:00
Merged revisions 285455 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8 ........ r285455 | qwell | 2010-09-07 17:22:14 -0500 (Tue, 07 Sep 2010) | 8 lines Don't automatically add domains for wildcard bindaddrs. (closes issue #17832) Reported by: oej Patches: 17832-wildcard.diff uploaded by qwell (license 4) Tested by: qwell ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@285456 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
+2
-2
@@ -27230,10 +27230,10 @@ static int reload_config(enum channelreloadreason reason)
|
||||
char temp[MAXHOSTNAMELEN];
|
||||
|
||||
/* First our default IP address */
|
||||
if (!ast_sockaddr_isnull(&bindaddr)) {
|
||||
if (!ast_sockaddr_isnull(&bindaddr) && !ast_sockaddr_is_any(&bindaddr)) {
|
||||
add_sip_domain(ast_sockaddr_stringify_addr(&bindaddr),
|
||||
SIP_DOMAIN_AUTO, NULL);
|
||||
} else if (!ast_sockaddr_isnull(&internip)) {
|
||||
} else if (!ast_sockaddr_isnull(&internip) && !ast_sockaddr_is_any(&internip)) {
|
||||
/* Our internal IP address, if configured */
|
||||
add_sip_domain(ast_sockaddr_stringify_addr(&internip),
|
||||
SIP_DOMAIN_AUTO, NULL);
|
||||
|
||||
Reference in New Issue
Block a user