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:
parent
fd62e99c23
commit
0484eac549
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue