mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-18 18:46:16 +00:00
copy just the ip address over to __ourip
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1249 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2942,7 +2942,7 @@ int load_module()
|
||||
}
|
||||
|
||||
if (ntohl(bindaddr.sin_addr.s_addr)) {
|
||||
memcpy(&__ourip, &bindaddr, sizeof(__ourip));
|
||||
memcpy(&__ourip, &bindaddr.sin_addr, sizeof(__ourip));
|
||||
} else {
|
||||
hp = gethostbyname(ourhost);
|
||||
if (!hp) {
|
||||
|
Reference in New Issue
Block a user